mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 07:17:12 +00:00
Change carbon monoxide device class to CO for deCONZ integration (#64185)
* Change carbon monoxide device class from gas to co * Add device class safety to alarm sensor
This commit is contained in:
parent
5b1acdf607
commit
02cc75997c
@ -49,9 +49,13 @@ ATTR_TILTANGLE = "tiltangle"
|
|||||||
ATTR_VIBRATIONSTRENGTH = "vibrationstrength"
|
ATTR_VIBRATIONSTRENGTH = "vibrationstrength"
|
||||||
|
|
||||||
ENTITY_DESCRIPTIONS = {
|
ENTITY_DESCRIPTIONS = {
|
||||||
|
Alarm: BinarySensorEntityDescription(
|
||||||
|
key="alarm",
|
||||||
|
device_class=BinarySensorDeviceClass.SAFETY,
|
||||||
|
),
|
||||||
CarbonMonoxide: BinarySensorEntityDescription(
|
CarbonMonoxide: BinarySensorEntityDescription(
|
||||||
key="carbonmonoxide",
|
key="carbonmonoxide",
|
||||||
device_class=BinarySensorDeviceClass.GAS,
|
device_class=BinarySensorDeviceClass.CO,
|
||||||
),
|
),
|
||||||
Fire: BinarySensorEntityDescription(
|
Fire: BinarySensorEntityDescription(
|
||||||
key="fire",
|
key="fire",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user