mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-28 05:34:10 -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
|
@ -112,6 +112,7 @@ NAMES = {
|
|||
"super_freeze": "REF_CMD&CTRL.MODALITIES.SUPER_FREEZE",
|
||||
"freezer_door": ["GLOBALS.APPLIANCE_STATUS.DOOR_OPEN", "REF.ZONES.FREEZER"],
|
||||
"fridge_door": ["GLOBALS.APPLIANCE_STATUS.DOOR_OPEN", "REF.ZONES.FRIDGE"],
|
||||
"filter_replacement": "AP.MAINTENANCE.FILTER_REPLACEMENT",
|
||||
},
|
||||
"button": {
|
||||
"induction_hob": "GLOBALS.APPLIANCES_NAME.IH",
|
||||
|
|
|
@ -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