mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-29 04:00:07 +02:00
Fix some minor errors and add russian translation.
This commit is contained in:
parent
0a58db40cd
commit
f0b4c5e723
4 changed files with 58 additions and 8 deletions
|
@ -3,6 +3,8 @@
|
|||
from datetime import timedelta
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
from homeassistant.helpers.event import async_track_time_interval
|
||||
|
||||
|
@ -72,6 +74,7 @@ class MikrotikControllerData:
|
|||
# ---------------------------
|
||||
# force_update
|
||||
# ---------------------------
|
||||
@callback
|
||||
async def force_update(self, _now=None):
|
||||
"""Trigger update by timer"""
|
||||
await self.async_update()
|
||||
|
@ -79,6 +82,7 @@ class MikrotikControllerData:
|
|||
# ---------------------------
|
||||
# force_fwupdate_check
|
||||
# ---------------------------
|
||||
@callback
|
||||
async def force_fwupdate_check(self, _now=None):
|
||||
"""Trigger hourly update by timer"""
|
||||
await self.async_fwupdate_check()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue