Many air conditioner fixes for #52
This commit is contained in:
		@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user