jjlawren / sonos_cloud

Sonos cloud API integration for Home Assistant with improved TTS/alerts handling
121 stars 5 forks source link

Error during start up #26

Closed groenmarsmannetje closed 2 years ago

groenmarsmannetje commented 2 years ago

I get the following error during startup.

Error setting up entry Configuration.yaml for sonos_cloud
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/sonos_cloud/__init__.py", line 93, in async_setup_entry
    for household in households:
TypeError: 'NoneType' object is not iterable

I am using HA version 2022.6.4 And integration version 0.3.0

AgentHawk commented 2 years ago

same

looks like 2022.6 broke something

jjlawren commented 2 years ago

I'm wondering if there was an issue with the Sonos API during that time. Can you try to reload the integration or restart HA to see if the problem persists?

AgentHawk commented 2 years ago

reinstalled the plugin... I'll take a look

groenmarsmannetje commented 2 years ago

I restarted Home Assistant and it still occurs. After that I rebooted, but also then it still occurs.

sgeeurickx commented 2 years ago

Same for me, probably since 2022.6. I removed and reinstalled the plugin. After that, I see "Import from configuration..." in the integrations tab but everything is working now. I take this opportunity to thank you for this very very useful plugin !

groenmarsmannetje commented 2 years ago

I just did a restart again of HA and now it seems to work again.

AgentHawk commented 2 years ago

got it again

jjlawren commented 2 years ago

I've added better error handling in 0.3.1. I'm 99% sure these issues are caused by transient HTTP errors that were being silently ignored.

mycanaletto commented 1 year ago

Sometimes it works, sometimes not... (since 2022.11 I would say) image