mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-09 17:04:29 +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:
|
except Exception:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
await self.hass.async_add_executor_job(self.get_system_resource)
|
||||||
|
|
||||||
if self.api.connected() and "available" not in self.data["fw-update"]:
|
if self.api.connected() and "available" not in self.data["fw-update"]:
|
||||||
await self.async_fwupdate_check()
|
await self.async_fwupdate_check()
|
||||||
|
|
||||||
if self.api.connected():
|
|
||||||
await self.hass.async_add_executor_job(self.get_system_resource)
|
|
||||||
|
|
||||||
if self.api.connected():
|
if self.api.connected():
|
||||||
await self.hass.async_add_executor_job(self.get_system_health)
|
await self.hass.async_add_executor_job(self.get_system_health)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue