mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 06:34:22 -04:00
Many air conditioner fixes for #52
This commit is contained in:
parent
d39deba973
commit
a4ec3290ba
30 changed files with 199 additions and 30 deletions
|
@ -61,7 +61,9 @@ for entity_type, appliances in entities.items():
|
|||
attributes = (key, entity.name, entity.icon, entity_type)
|
||||
category = (
|
||||
"control"
|
||||
if entity_type in ["switch", "button", "climate"]
|
||||
if entity.key.startswith("settings")
|
||||
or hasattr(entity, "turn_on_key")
|
||||
or entity_type in ["button", "climate"]
|
||||
else "sensor"
|
||||
)
|
||||
result.setdefault(appliance, {}).setdefault(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue