albaintor / homeassistant_electrolux_status

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

Error Setting up entry #4

Closed sultanhq closed 7 months ago

sultanhq commented 7 months ago

Getting this error after installing the library:

I have an AEG Dishwasher, which I have renamed from the default 'Dishwasher' to 'AEG Dishwasher' (assuming this was what was meant in the docs by setting an alias 🤷 )

Error setting up entry r$$$$$$$$$s@gmail.com for electrolux_status Traceback (most recent call last): File "/config/custom_components/electrolux_status/init.py", line 133, in setup_entities app.setup(ElectroluxLibraryEntity(name=appliance_name, status=connection_state, state=appliance_status, File "/config/custom_components/electrolux_status/api.py", line 393, in setup ElectroluxSensor( File "/config/custom_components/electrolux_status/entity.py", line 35, in init self.entity_id = ENTITY_ID_FORMAT.format(f"{self.getappliance.brand}{self.getappliance.name}{self.entitysource}{self.entity_attr}") ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'brand'

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 57, in async_setup_entry await coordinator.setup_entities() File "/config/custom_components/electrolux_status/init.py", line 140, in setup_entities raise UpdateFailed() from exception homeassistant.helpers.update_coordinator.UpdateFailed

slingshot74 commented 7 months ago

@sultanhq This is an know error and @albaintor will fix it later

sultanhq commented 7 months ago

Thanks,

albaintor commented 7 months ago

This is fixed and will be released shortly