mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-28 03:30:07 +02:00
rebase
This commit is contained in:
commit
c8728238af
10 changed files with 142 additions and 19 deletions
|
@ -442,9 +442,9 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
# ---------------------------
|
||||
# execute
|
||||
# ---------------------------
|
||||
def execute(self, path, command, param, value):
|
||||
def execute(self, path, command, param, value, attributes=None):
|
||||
"""Change value using Mikrotik API"""
|
||||
return self.api.execute(path, command, param, value)
|
||||
return self.api.execute(path, command, param, value, attributes)
|
||||
|
||||
# ---------------------------
|
||||
# run_script
|
||||
|
@ -1487,7 +1487,9 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
):
|
||||
return
|
||||
|
||||
self.execute("/system/package/update", "check-for-updates", None, None)
|
||||
self.execute(
|
||||
"/system/package/update", "check-for-updates", None, None, {"duration": 10}
|
||||
)
|
||||
self.ds["fw-update"] = parse_api(
|
||||
data=self.ds["fw-update"],
|
||||
source=self.api.query("/system/package/update"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue