Many air conditioner fixes for #52

This commit is contained in:
Andre Basche 2023-05-17 00:01:33 +02:00
parent d39deba973
commit a4ec3290ba
30 changed files with 199 additions and 30 deletions

View file

@ -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(