mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-16 04:14:31 +02:00
added force_fwupdate_check for time interval
This commit is contained in:
parent
4954908bff
commit
0c5048160f
1 changed files with 9 additions and 1 deletions
|
@ -45,7 +45,7 @@ class MikrotikControllerData():
|
|||
self.api = None
|
||||
|
||||
async_track_time_interval(self.hass, self.force_update, self.option_scan_interval)
|
||||
async_track_time_interval(self.hass, self.async_fwupdate_check, timedelta(hours=1))
|
||||
async_track_time_interval(self.hass, self.force_fwupdate_check, timedelta(hours=1))
|
||||
|
||||
return
|
||||
|
||||
|
@ -57,6 +57,14 @@ class MikrotikControllerData():
|
|||
await self.async_update()
|
||||
return
|
||||
|
||||
# ---------------------------
|
||||
# force_fwupdate_check
|
||||
# ---------------------------
|
||||
async def force_update(self, now=None):
|
||||
"""Periodic update."""
|
||||
await self.async_fwupdate_check()
|
||||
return
|
||||
|
||||
# ---------------------------
|
||||
# option_track_arp
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue