From cd51d994b19762e6be251f519f4712aa7de4acea Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Fri, 3 Sep 2021 22:48:11 +0100 Subject: [PATCH] System Bridge - Set device class for binary sensor (#55688) --- homeassistant/components/system_bridge/binary_sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/system_bridge/binary_sensor.py b/homeassistant/components/system_bridge/binary_sensor.py index 4280293a434..0587ec3629c 100644 --- a/homeassistant/components/system_bridge/binary_sensor.py +++ b/homeassistant/components/system_bridge/binary_sensor.py @@ -8,6 +8,7 @@ from systembridge import Bridge from homeassistant.components.binary_sensor import ( DEVICE_CLASS_BATTERY_CHARGING, + DEVICE_CLASS_UPDATE, BinarySensorEntity, BinarySensorEntityDescription, ) @@ -30,7 +31,7 @@ BASE_BINARY_SENSOR_TYPES: tuple[SystemBridgeBinarySensorEntityDescription, ...] SystemBridgeBinarySensorEntityDescription( key="version_available", name="New Version Available", - icon="mdi:counter", + device_class=DEVICE_CLASS_UPDATE, value=lambda bridge: bridge.information.updates.available, ), )