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

Index Out of Range #45

Closed
adam-olson opened this issue Jul 7, 2022 · 1 comment
Closed

Index Out of Range #45

adam-olson opened this issue Jul 7, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@adam-olson
Copy link

Looks like we have and Index out of range.

'2022-07-07 18:30:39 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 137, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/config/custom_components/spacex/sensor.py", line 590, in state
self._state = latest_launch_data["payloads_detail"][0]["name"]
IndexError: list index out of range'

@djtimca djtimca self-assigned this Jul 8, 2022
@djtimca djtimca added the bug Something isn't working label Jul 8, 2022
@djtimca djtimca closed this as completed in 0937f6a Jul 8, 2022
@djtimca
Copy link
Owner

djtimca commented Jul 8, 2022

Fixed and will be released to HACS shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants