LavermanJJ / home-assistant-solarfocus

🏡 Solarfocus eco manager touch integration for Home Assistant
Apache License 2.0
17 stars 7 forks source link

Fix broken config-migration for 3.0.0-beta -> CONF_FRESH_WATER_MODULE not defined #46

Closed lein1013 closed 1 year ago

lein1013 commented 1 year ago

CONF_FRESH_WATER_MODULEnot imported in__init__.py

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 629, in async_migrate
    result = await component.async_migrate_entry(hass, self)
  File "/config/custom_components/solarfocus/__init__.py", line 145, in async_migrate_entry
    new_options[CONF_FRESH_WATER_MODULE] = 0
NameError: name 'CONF_FRESH_WATER_MODULE' is not defined
lein1013 commented 1 year ago

Pull Request opened https://github.com/LavermanJJ/home-assistant-solarfocus/pull/47

LavermanJJ commented 1 year ago

fixed by #47