Skip to content
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

error doing job #54

Open
momoz opened this issue Dec 29, 2023 · 1 comment
Open

error doing job #54

momoz opened this issue Dec 29, 2023 · 1 comment

Comments

@momoz
Copy link

momoz commented Dec 29, 2023

Not sure if this is impacting why it doesn't update the pump switch sometimes. I've had an issue where the integration doesn't get or realize that the pump is off after the scheduled turn off in the OmniLogic scheduler.

Logger: homeassistant
Source: custom_components/omnilogic/sensor.py:171
Integration: Omnilogic (documentation, issues)
First occurred: 10:10:36 AM (3 occurrences)
Last logged: 10:11:06 AM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1163, in _async_registry_updated
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 745, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 845, in _async_write_ha_state
state, attr = self._async_generate_attributes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 786, in _async_generate_attributes
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 751, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 501, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/config/custom_components/omnilogic/sensor.py", line 171, in native_value
return state
^^^^^
UnboundLocalError: cannot access local variable 'state' where it is not associated with a value

@momoz
Copy link
Author

momoz commented Dec 29, 2023

Oh, I saw a previous issue logged for the same thing and I did uninstall and reinstall the integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant