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: Task exception was never retrieved (None) #58

Open
razzietheman opened this issue Jun 17, 2024 · 0 comments
Open

Error doing job: Task exception was never retrieved (None) #58

razzietheman opened this issue Jun 17, 2024 · 0 comments

Comments

@razzietheman
Copy link

Felet härrör från en anpassad integration.

Logger: homeassistant
Källa: custom_components/pollenprognos/sensor.py:43
integration: Pollenprognos (dokumentation, ärenden)
Inträffade först: 14:06:14 (1 händelser)
Senast loggade: 14:06:14

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 491, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1061, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1006, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/config/custom_components/pollenprognos/sensor.py", line 55, in state
today = next(item for item in self._allergen.get('days', []) if item['day'] == 0)
^^^^^^^^^^^^^^
File "/config/custom_components/pollenprognos/sensor.py", line 43, in _allergen
city = next(item for item in self.coordinator.data.get('cities', []).get('cities', []) if
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

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