mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-25 10:18:43 +02:00
Added Device_class for firmware update binary sensor, fixes #137
This commit is contained in:
parent
274de8c6fd
commit
f82f9e9c3e
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue