Skip to content

Commit

Permalink
fix: climate was mapped to cover platform
Browse files Browse the repository at this point in the history
- may cause a separate unavailable climate entity shown for curtain
  motor
- needs to delete the climate entity manually
  • Loading branch information
rxwen committed Nov 3, 2023
1 parent 1b72d95 commit 8eeb4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/terncy/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8eeb4ec

Please sign in to comment.