homeassistant_electrolux_status: Failed to start integration

Integration worked up till a couple of hours ago. Get the following log message:

`Traceback (most recent call last): File “/config/custom_components/electrolux_status/init.py”, line 105, in setup_entities for appliance_json in appliances_json: TypeError: ‘NoneType’ object is not iterable

The above exception was the direct cause of the following exception:

‘’’ Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 406, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/electrolux_status/init.py”, line 59, in async_setup_entry await coordinator.setup_entities() File “/config/custom_components/electrolux_status/init.py”, line 139, in setup_entities raise UpdateFailed() from exception homeassistant.helpers.update_coordinator.UpdateFailed` ‘’’

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Hi,

Had the same error as matt05d (no devices no entities) on my docker install on a raspberry pi. The log is giving: ‘NoneType’ object is not iterable, stemming from init.py line 105. Hence I use this issue.

However with HA on my Mac (for development) this integration worked fine; giving all the info. I used the same credentials. Only difference I could see is that the raspberry pi was using python 3.11 (Error) opposed to 3.12 (working) on my Mac.

Also on the raspberry pi (python 3.11), some 6 seconds before the nonetype error, there is this error. /usr/local/lib/python3.11/asyncio/base_events.py:1910: RuntimeWarning: coroutine ‘OneAppApi.get_user_token’ was never awaited handle = self._ready.popleft()

My guess now is that python 3.11 (so all docker based HA installations) is playing up. I hope this helps.

thank you very much for your work, I read that with 2024.2 we move to python 3.12, I’m waiting for the official update

I had the exact same behaviour. I think this is some kind of conter measure to avoid too many requests to their server. The solution is to switch to websockets (pushing mode instead of polling). Some more work to do… If this works all the time with Python 3.12, let’s hope that HA team will send this new release soon

Hi,

Had the same error as matt05d (no devices no entities) on my docker install on a raspberry pi. The log is giving: ‘NoneType’ object is not iterable, stemming from init.py line 105. Hence I use this issue.

However with HA on my Mac (for development) this integration worked fine; giving all the info. I used the same credentials. Only difference I could see is that the raspberry pi was using python 3.11 (Error) opposed to 3.12 (working) on my Mac.

Also on the raspberry pi (python 3.11), some 6 seconds before the nonetype error, there is this error. /usr/local/lib/python3.11/asyncio/base_events.py:1910: RuntimeWarning: coroutine ‘OneAppApi.get_user_token’ was never awaited handle = self._ready.popleft()

My guess now is that python 3.11 (so all docker based HA installations) is playing up. I hope this helps.

@dave-prosee Good work! Maybe you can try installing python 3.11 on your Mac to be sure.

Integration worked up till the last update