oyvindwe / connectlife-ha

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

Cannot reconfigure integration with climate entity #62

Closed oyvindwe closed 4 months ago

oyvindwe commented 4 months ago
2024-07-14 23:00:19.276 ERROR (MainThread) [homeassistant.components.climate] Error while setting up connectlife platform for climate
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/climate.py", line 50, in async_setup_entry
    entities.append(ConnectLifeClimate(coordinator, appliance, dictionary))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/omw/proj/home-assistant/config/custom_components/connectlife/climate.py", line 168, in __init__
    self.preset_map = {preset.pop(PRESET): preset for preset in data_dictionary.climate[PRESETS]}
                       ^^^^^^^^^^^^^^^^^^
KeyError: 'preset'