mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
System Bridge - Set device class for binary sensor (#55688)
This commit is contained in:
parent
4eba2ccebc
commit
cd51d994b1
@ -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,
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user