From 8eeb4ec2443c6c3d79a98252ee757788660748cd Mon Sep 17 00:00:00 2001 From: ruixiongwen Date: Fri, 3 Nov 2023 16:09:44 +0800 Subject: [PATCH] fix: climate was mapped to cover platform - may cause a separate unavailable climate entity shown for curtain motor - needs to delete the climate entity manually --- custom_components/terncy/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/terncy/climate.py b/custom_components/terncy/climate.py index 7a87d3d..7e8bbde 100644 --- a/custom_components/terncy/climate.py +++ b/custom_components/terncy/climate.py @@ -41,7 +41,7 @@ def new_entity(gateway, eid: str, description: TerncyEntityDescription): return TerncyClimate(gateway, eid, description) gw: "TerncyGateway" = hass.data[DOMAIN][config_entry.entry_id] - gw.add_setup(Platform.COVER, create_entity_setup(async_add_entities, new_entity)) + gw.add_setup(Platform.CLIMATE, create_entity_setup(async_add_entities, new_entity)) K_AC_MODE = "acMode" # 制冷:1,除湿:2,通风:4,制热:8