Added Device_class for firmware update binary sensor, fixes #137

This commit is contained in:
tomaae 2021-12-13 13:50:53 +01:00
parent 274de8c6fd
commit f82f9e9c3e

View file

@ -11,6 +11,7 @@ from homeassistant.components.binary_sensor import (
from homeassistant.const import (
CONF_NAME,
CONF_HOST,
ATTR_DEVICE_CLASS,
ATTR_ATTRIBUTION,
)
from homeassistant.core import callback
@ -37,6 +38,7 @@ ATTR_CTGR = "entity_category"
SENSOR_TYPES = {
"system_fwupdate": {
ATTR_DEVICE_CLASS: BinarySensorDeviceClass.UPDATE,
ATTR_LABEL: "Firmware update",
ATTR_GROUP: "System",
ATTR_PATH: "fw-update",