|
发表于 2022-9-4 19:33:56
|
显示全部楼层
ha 2022.3.0无法添加热水器实体 开关都在 实体不在
Logger: homeassistant.components.water_heater
Source: custom_components/midea_ac_lan/water_heater.py:46
Integration: Water Heater (documentation, issues)
First occurred: 09:48:12 (2 occurrences)
Last logged: 09:48:12
Error adding entities for domain water_heater with platform midea_ac_lan
Error while setting up midea_ac_lan platform for water_heater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 514, in _async_add_entity
capabilities=entity.capability_attributes,
File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 181, in capability_attributes
supported_features = self.supported_features or 0
File "/config/custom_components/midea_ac_lan/water_heater.py", line 46, in supported_features
return WaterHeaterEntityFeature.TARGET_TEMPERATURE
NameError: name 'WaterHeaterEntityFeature' is not defined
|
|