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

Repeating Error in Log File #33

Closed
adam-olson opened this issue Oct 10, 2021 · 3 comments
Closed

Repeating Error in Log File #33

adam-olson opened this issue Oct 10, 2021 · 3 comments

Comments

@adam-olson
Copy link

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

@swampylee
Copy link

Same issue here - HA core-2021.10.3

@djtimca
Copy link
Owner

djtimca commented Oct 13, 2021

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
Copy link
Owner

djtimca commented Oct 13, 2021

Fixed in release 030

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

3 participants