You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2021-10-10 05:16:20 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 456, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 496, in async_write_ha_state
extra_state_attributes = self.device_state_attributes
File "/config/custom_components/spacex/sensor.py", line 417, in device_state_attributes
self.attrs["core" + str(core_counter) + "_serial"] = this_core["details"][
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered:
It appears that for some reason the SpaceX API is returning null values for most of the most recent launch details. I'll look at adding some additional error handling, but it is likely just going to mean that we have almost blank data on the latest launch.
Seems to repeat about every 30 seconds.
2021-10-10 05:16:20 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 456, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 496, in async_write_ha_state
extra_state_attributes = self.device_state_attributes
File "/config/custom_components/spacex/sensor.py", line 417, in device_state_attributes
self.attrs["core" + str(core_counter) + "_serial"] = this_core["details"][
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: