diff --git a/custom_components/mikrotik_router/mikrotik_controller.py b/custom_components/mikrotik_router/mikrotik_controller.py index de2488d..4d1a154 100644 --- a/custom_components/mikrotik_router/mikrotik_controller.py +++ b/custom_components/mikrotik_router/mikrotik_controller.py @@ -278,9 +278,6 @@ class MikrotikControllerData: if self.api.connected(): await self.hass.async_add_executor_job(self.get_dns) - if self.api.connected(): - await self.hass.async_add_executor_job(self.get_queue) - self.lock.release() # --------------------------- @@ -417,6 +414,9 @@ class MikrotikControllerData: if self.api.connected(): await self.hass.async_add_executor_job(self.process_accounting) + if self.api.connected(): + await self.hass.async_add_executor_job(self.get_queue) + async_dispatcher_send(self.hass, self.signal_update) self.lock.release()