mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-12 18:34:30 +02:00
Fixed crash during slow reboot
This commit is contained in:
parent
b15940fc8e
commit
6905bcb6b5
1 changed files with 4 additions and 3 deletions
|
@ -705,9 +705,10 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
],
|
||||
)
|
||||
|
||||
self.ds["access"] = tmp_group[
|
||||
tmp_user[self.config_entry.data[CONF_USERNAME]]["group"]
|
||||
]["policy"].split(",")
|
||||
if tmp_user[self.config_entry.data[CONF_USERNAME]]["group"] in tmp_group:
|
||||
self.ds["access"] = tmp_group[
|
||||
tmp_user[self.config_entry.data[CONF_USERNAME]]["group"]
|
||||
]["policy"].split(",")
|
||||
|
||||
if not self.accessrights_reported:
|
||||
self.accessrights_reported = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue