djtimca / HASpaceX

Home Assistant integration for SpaceX Next Launch and Starman data.
https://github.com/djtimca/HASpaceX
Apache License 2.0
33 stars 5 forks source link

Repeating Error in Log File #33

Closed adam-olson closed 3 years ago

adam-olson commented 3 years ago

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_stateattributes self.attrs["core" + str(core_counter) + "_serial"] = this_core["details"][ TypeError: 'NoneType' object is not subscriptable

swampylee commented 3 years ago

Same issue here - HA core-2021.10.3

djtimca commented 3 years ago

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.

djtimca commented 3 years ago

Fixed in release 030