mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-01 00:14:29 +02:00
fixed queue switch status #40
This commit is contained in:
parent
b084667c76
commit
c1c4b41a97
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue