mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Change Hue zigbee connectivity sensor into an enum (#98632)
This commit is contained in:
parent
f01c71e514
commit
11a90016d0
@ -94,6 +94,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"sensor": {
|
||||||
|
"zigbee_connectivity": {
|
||||||
|
"state": {
|
||||||
|
"connected": "[%key:common::state::connected%]",
|
||||||
|
"disconnected": "[%key:common::state::disconnected%]",
|
||||||
|
"connectivity_issue": "Connectivity issue",
|
||||||
|
"unidirectional_incoming": "Unidirectional incoming"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -156,6 +156,14 @@ class HueZigbeeConnectivitySensor(HueSensorBase):
|
|||||||
"""Representation of a Hue ZigbeeConnectivity sensor."""
|
"""Representation of a Hue ZigbeeConnectivity sensor."""
|
||||||
|
|
||||||
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||||
|
_attr_translation_key = "zigbee_connectivity"
|
||||||
|
_attr_device_class = SensorDeviceClass.ENUM
|
||||||
|
_attr_options = [
|
||||||
|
"connected",
|
||||||
|
"disconnected",
|
||||||
|
"connectivity_issue",
|
||||||
|
"unidirectional_incoming",
|
||||||
|
]
|
||||||
_attr_entity_registry_enabled_default = False
|
_attr_entity_registry_enabled_default = False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user