mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-31 23:10:05 +02:00
added version attributes to firmware update sensor #213
This commit is contained in:
parent
5408d60bbd
commit
1183c4371d
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,13 @@ from homeassistant.components.binary_sensor import (
|
|||
|
||||
from .const import DOMAIN
|
||||
|
||||
DEVICE_ATTRIBUTES_FWUPDATE = [
|
||||
"channel",
|
||||
"status",
|
||||
"installed-version",
|
||||
"latest-version",
|
||||
]
|
||||
|
||||
DEVICE_ATTRIBUTES_PPP_SECRET = [
|
||||
"connected",
|
||||
"service",
|
||||
|
@ -116,6 +123,7 @@ SENSOR_TYPES = {
|
|||
data_name="",
|
||||
data_uid="",
|
||||
data_reference="",
|
||||
data_attributes_list=DEVICE_ATTRIBUTES_FWUPDATE,
|
||||
),
|
||||
"system_ups": MikrotikBinarySensorEntityDescription(
|
||||
key="system_ups",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue