-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Bonjour, j'ai voulu mettre a jour la passerelle avec la derniere version, voici l'erreur :
INFO ESPHome 2025.5.0
INFO Reading configuration /config/opentherm.yaml...
ERROR Unable to load component openthermgw.text_sensor:
Traceback (most recent call last):
File "/esphome/esphome/loader.py", line 185, in _lookup_module
module = importlib.import_module(f"esphome.components.{domain}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/.esphome/external_components/3ebeb946/components/openthermgw/text_sensor.py", line 18, in
CONFIG_SCHEMA = validate.create_component_schema(schema.TEXT_SENSORS, get_entity_validation_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/.esphome/external_components/3ebeb946/components/openthermgw/validate.py", line 15, in create_component_schema
.extend(create_entities_schema(entities, get_entity_validation_schema))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/.esphome/external_components/3ebeb946/components/openthermgw/validate.py", line 10, in create_entities_schema
schema[cv.Optional(key)] = get_entity_validation_schema(entity)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/.esphome/external_components/3ebeb946/components/openthermgw/text_sensor.py", line 14, in get_entity_validation_schema
icon = entity["icon"] if "icon" in entity else text_sensor._UNDEF,
^^^^^^^^^^^^^^^^^^
AttributeError: module 'esphome.components.text_sensor' has no attribute '_UNDEF'
Failed config
text_sensor.openthermgw: [source /config/opentherm.yaml:89]
Platform not found: 'text_sensor.openthermgw'.
Merci