dentra / esphome-ewh

Control Electrolux Water Heater via uart
MIT License
25 stars 8 forks source link

Error while updating iot-uni-dongle for ESPHome 2022.9.0 #3

Closed enkorsh closed 1 year ago

enkorsh commented 1 year ago

Hello! Updated ESPHome to version 2022.9.0 Errors occur when updating iot-uni-dongle:

INFO Reading configuration /config/esphome/water-heat.yaml... ERROR Unable to load component ewh: Traceback (most recent call last): File "/esphome/esphome/loader.py", line 162, in _lookup_module module = importlib.import_module(f"esphome.components.{domain}") File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/config/esphome/.esphome/external_components/5e7bb4e7/components/ewh/init.py", line 65, in cv.Optional(CONF_ICON, default=ICON_WATER_BOILER): switch.icon, AttributeError: module 'esphome.components.switch' has no attribute 'icon' ERROR Unable to load component ewh.climate: Traceback (most recent call last): File "/esphome/esphome/loader.py", line 162, in _lookup_module module = importlib.import_module(f"esphome.components.{domain}") File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/config/esphome/.esphome/external_components/5e7bb4e7/components/ewh/init.py", line 65, in cv.Optional(CONF_ICON, default=ICON_WATER_BOILER): switch.icon, AttributeError: module 'esphome.components.switch' has no attribute 'icon' INFO Detected timezone 'Europe/Moscow' Failed config

ewh: [source /config/esphome/.esphome/packages/3a7dff6c/ewh-pkg-web.yaml:128]

Component not found: ewh. on_state: then:

Help me please

dentra commented 1 year ago

this is due breaking changes in esphome api, will fix.

enkorsh commented 1 year ago

thank you very much, best regards, Eugene

dentra commented 1 year ago

now updated

enkorsh commented 1 year ago

Hello, I tried to update, while compiling an error occurs. Error_update

dentra commented 1 year ago

Please uncomment clock or timer as workaround

enkorsh commented 1 year ago

Thanks, all worked well