-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service "refresh_previous_consumption_data" failed #1179
Comments
Hello. As per the docs and the logs you've posted, you're targeting the wrong entity. You say this doesn't work with the m3 version of the entity. What error are you getting for this entity? |
Hi Thank you for looking at this. I retried with the following action woth the m3 entity:
Still the same response: ` During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Thanks for supplying the logs. That's actually a different response (but same outcome :)). It kooks like OE is returning more data than the integration requested, which is why it's erroring. This should be fixed in the next release. |
This issue should be fixed as part of v13.5.4. Please let me know if it hasn't. |
Describe the bug
Hi,
Trying to refresh gas consumption data grab from OE to fill a gap on my gas meter sensor from the 9th to 13th Jan (inc.).
As per issue #983 I tried to run the refresh_previous_consumption_data service using the developer tools and got failed, unknown error message.
Reproduction steps
Developer Tools>Actions>Selected refres service > added kWh (or m3) entity > set date to 8/1/25 > perform action
Expected behaviour
Backfill data gap
Tariff Code
? - can't find a tariff code in any of my rate data
Integration Version
13.5.3
Home Assistant Version
2025.1.2
Fresh Install?
Fresh install
Home Assistant Logs
`Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:526
First occurred: 1:54:02 PM (2 occurrences)
Last logged: 2:11:00 PM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'OctopusEnergyPreviousAccumulativeGasConsumptionKwh' object has no attribute 'async_refresh_previous_consumption_data'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1067, in _handle_entity_call
partial(getattr(entity, func), **data), # type: ignore[arg-type]
~~~~~~~^^^^^^^^^^^^^^
AttributeError: 'OctopusEnergyPreviousAccumulativeGasConsumptionKwh' object has no attribute 'async_refresh_previous_consumption_data'
Confirmation
The text was updated successfully, but these errors were encountered: