midea_ac_lan icon indicating copy to clipboard operation
midea_ac_lan copied to clipboard

“静新风”壁挂空调无法添加Fresh Air实体

Open yuanchenhao opened this issue 10 months ago • 0 comments

HA版本

2023.4.3

集成版本

0.3.22

设备类型及型号

Air Conditioner 22013005 (0)

使用的App

美的美居

问题详细描述

KFR-35G/N8XF1-1 是正常壁挂空调,包含新风功能, 添加默认实体后再添加fresh air实体无法成功(其他额外实体都可以添加(所以很多实体也无法通用)

产品为静新风空调,为2013年底新机型

The logs

Logger: homeassistant.components.fan Source: helpers/entity_platform.py:360 Integration: 风扇 (documentation, issues) First occurred: 00:55:46 (12 occurrences) Last logged: 01:23:39

Error while setting up midea_ac_lan platform for fan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/midea_ac_lan/fan.py", line 37, in async_setup_entry devs.append(MideaACFreshAirFan(device, entity_key)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/midea_ac_lan/fan.py", line 132, in init self._attr_supported_features = SUPPORT_SET_SPEED | SUPPORT_PRESET_MODE ^^^^^^^^^^^^^^^^^ NameError: name 'SUPPORT_SET_SPEED' is not defined

yuanchenhao avatar Apr 13 '24 17:04 yuanchenhao