Closed enkorsh closed 1 year ago
this is due breaking changes in esphome api, will fix.
thank you very much, best regards, Eugene
now updated
Hello, I tried to update, while compiling an error occurs.
Please uncomment clock or timer as workaround
Thanks, all worked well
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:
lambda: |- id(wh_current_temp).publish_state(state.current_temperature); id(wh_target_temp).publish_state(state.target_temperature); switch(state.state) { case ewh::ewh_status_t::STATE_700W: id(wh_state).publish_state(true); id(wh_mode).publish_state("700 W"); break; case ewh::ewh_status_t::STATE_1300W: id(wh_state).publish_state(true); id(wh_mode).publish_state("1300 W"); break; case ewh::ewh_status_t::STATE_2000W: id(wh_state).publish_state(true); id(wh_mode).publish_state("2000 W"); break; case ewh::ewh_status_t::STATE_TIMER: id(wh_state).publish_state(true); id(wh_mode).publish_state("Timer"); break; case ewh::ewh_status_t::STATE_NO_FROST: id(wh_state).publish_state(true); id(wh_mode).publish_state("No Frost"); break; default: id(wh_state).publish_state(false); break; } id: wh climate.ewh: [source /config/esphome/.esphome/packages/3a7dff6c/ewh-pkg-ewh.yaml:38]
Platform not found: 'climate.ewh'. platform: ewh id: whc name: Water Heater bst: name: Water Heater BST
Help me please