mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Set options for carbon monoxide detector sensor in SmartThings (#139346)
This commit is contained in:
parent
9be8fd4eac
commit
e403bee95b
@ -166,6 +166,8 @@ CAPABILITY_TO_SENSORS: dict[
|
|||||||
SmartThingsSensorEntityDescription(
|
SmartThingsSensorEntityDescription(
|
||||||
key=Attribute.CARBON_MONOXIDE,
|
key=Attribute.CARBON_MONOXIDE,
|
||||||
translation_key="carbon_monoxide_detector",
|
translation_key="carbon_monoxide_detector",
|
||||||
|
options=["detected", "clear", "tested"],
|
||||||
|
device_class=SensorDeviceClass.ENUM,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -61,7 +61,12 @@
|
|||||||
"name": "Body weight"
|
"name": "Body weight"
|
||||||
},
|
},
|
||||||
"carbon_monoxide_detector": {
|
"carbon_monoxide_detector": {
|
||||||
"name": "Carbon monoxide detector"
|
"name": "Carbon monoxide detector",
|
||||||
|
"state": {
|
||||||
|
"detected": "Detected",
|
||||||
|
"clear": "Clear",
|
||||||
|
"tested": "Tested"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"dishwasher_machine_state": {
|
"dishwasher_machine_state": {
|
||||||
"name": "Machine state"
|
"name": "Machine state"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user