From 5c234a3504fd0d399c63b045dbe86fbe2d26f292 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 23 Jul 2022 07:24:34 -0400 Subject: [PATCH] Use CO Device Class Instead of Gas in zwave_js (#75649) Use CO Device Class Instead of Gas Switches the carbon monoxide sensor from `Gas` to `CO` --- homeassistant/components/zwave_js/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/zwave_js/binary_sensor.py b/homeassistant/components/zwave_js/binary_sensor.py index f6480689910..7fa20b2b1f5 100644 --- a/homeassistant/components/zwave_js/binary_sensor.py +++ b/homeassistant/components/zwave_js/binary_sensor.py @@ -90,7 +90,7 @@ NOTIFICATION_SENSOR_MAPPINGS: tuple[NotificationZWaveJSEntityDescription, ...] = # NotificationType 2: Carbon Monoxide - State Id's 1 and 2 key=NOTIFICATION_CARBON_MONOOXIDE, states=("1", "2"), - device_class=BinarySensorDeviceClass.GAS, + device_class=BinarySensorDeviceClass.CO, ), NotificationZWaveJSEntityDescription( # NotificationType 2: Carbon Monoxide - All other State Id's