mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-20 10:44:31 +02:00
Workaround for 7.17 missing /system/health in some devices, fixes #392
This commit is contained in:
parent
6905bcb6b5
commit
477c68cf55
2 changed files with 13 additions and 2 deletions
|
@ -1428,8 +1428,9 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
{"name": "value", "default": "unknown"},
|
||||
],
|
||||
)
|
||||
for uid, vals in self.ds["health7"].items():
|
||||
self.ds["health"][uid] = vals["value"]
|
||||
if self.ds["health7"]:
|
||||
for uid, vals in self.ds["health7"].items():
|
||||
self.ds["health"][uid] = vals["value"]
|
||||
|
||||
# ---------------------------
|
||||
# get_system_resource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue