diff --git a/custom_components/mikrotik_router/mikrotik_controller.py b/custom_components/mikrotik_router/mikrotik_controller.py index f3a4e10..b2c4aa3 100644 --- a/custom_components/mikrotik_router/mikrotik_controller.py +++ b/custom_components/mikrotik_router/mikrotik_controller.py @@ -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)