oyvindwe / connectlife-ha

ConnectLife integration for Home Assistant
GNU General Public License v3.0
46 stars 22 forks source link

The dehumidifier entity is missing after 0.7.0 upgrade #36

Closed trajano closed 2 months ago

trajano commented 2 months ago
          Deleted and re-added all I see is the fan speed selector

image

So likely there are changes on humidifier that broke this.

Originally posted by @trajano in https://github.com/oyvindwe/connectlife-ha/issues/22#issuecomment-2218791226

oyvindwe commented 2 months ago

I got the error in my log:

2024-07-10 01:18:31.183 ERROR (MainThread) [homeassistant.components.humidifier] Error while setting up connectlife platform for humidifier
Traceback (most recent call last):
  File "/Users/omw/proj/home-assistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/Users/omw/proj/home-assistant/config/custom_components/connectlife/humidifier.py", line 41, in async_setup_entry
    entities.append(ConnectLifeHumidifier(coordinator, appliance, dictionary))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/omw/proj/home-assistant/config/custom_components/connectlife/humidifier.py", line 109, in __init__
    self._attr_min_humidity = data_dictionary[status].climate.min_value
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Property' object has no attribute 'climate'

Regression error due to poor testing of humidifier - apologies for that. Fixed in version 0.7.1