albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
81 stars 20 forks source link

TypeError on setting up #8

Closed tieskuh closed 7 months ago

tieskuh commented 7 months ago

Hi Albaintor,

Thank you very much for continuing development on this integration! I tried setting up the new release but got an error after entering my credentials. So setting up the integration works, but no entities are being loaded.

I have two AEG machines which worked correctly in the previous integration.

Both machines have a name in the AEG app.

Error setting up entry e@mail.com for electrolux_status
Traceback (most recent call last):
  File "/config/custom_components/electrolux_status/__init__.py", line 142, in setup_entities
    appliance.setup(ElectroluxLibraryEntity(name=appliance_name, status=connection_status,
  File "/config/custom_components/electrolux_status/api.py", line 274, in setup
    for capability in capabilities_names:
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 149, in setup_entities
    raise UpdateFailed() from exception
homeassistant.helpers.update_coordinator.UpdateFailed

I downloaded the integration via HACS by adding your GIT repository as custom repository.

The strange thing is, it downloaded this version. Which does not correspond to any of your releases.

image

tieskuh commented 7 months ago

I think HACS doesn't recognise the versions you published in one way or another. When trying to redownload the integration via HACS, there is also no option to select the version

image

It should be possible. This is for example also a custom repository which I added manually. This one shows versions correctly.

https://github.com/cyr-ius/hass-audiconnect/releases

image

image

tieskuh commented 7 months ago

Latest version you just published, still same error.

Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 14:33:49 (2 occurrences)
Last logged: 14:34:26

Error setting up entry e@mail.com for electrolux_status
Traceback (most recent call last):
  File "/config/custom_components/electrolux_status/__init__.py", line 142, in setup_entities
    appliance.setup(ElectroluxLibraryEntity(name=appliance_name, status=connection_status,
  File "/config/custom_components/electrolux_status/api.py", line 147, in setup
    for capability in capabilities_names:
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 149, in setup_entities
    raise UpdateFailed() from exception
homeassistant.helpers.update_coordinator.UpdateFailed
slingshot74 commented 7 months ago

I have that same error now

tieskuh commented 7 months ago

Issue is solved in beta 5! Thank you!!

slingshot74 commented 7 months ago

I can confirm it's solved. Awesome!