mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-27 19:28:54 +02:00
fixed reconnect, fixes #217
This commit is contained in:
parent
b368ecc532
commit
5b1c88fa6a
1 changed files with 2 additions and 3 deletions
|
@ -598,12 +598,11 @@ class MikrotikControllerData:
|
|||
except Exception:
|
||||
return
|
||||
|
||||
await self.hass.async_add_executor_job(self.get_system_resource)
|
||||
|
||||
if self.api.connected() and "available" not in self.data["fw-update"]:
|
||||
await self.async_fwupdate_check()
|
||||
|
||||
if self.api.connected():
|
||||
await self.hass.async_add_executor_job(self.get_system_resource)
|
||||
|
||||
if self.api.connected():
|
||||
await self.hass.async_add_executor_job(self.get_system_health)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue