Fixed crash during slow reboot

This commit is contained in:
Tomaae 2025-05-01 12:33:00 +02:00
parent b15940fc8e
commit 6905bcb6b5
No known key found for this signature in database
GPG key ID: 60C51A657EEF2D87

View file

@ -705,9 +705,10 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
], ],
) )
self.ds["access"] = tmp_group[ if tmp_user[self.config_entry.data[CONF_USERNAME]]["group"] in tmp_group:
tmp_user[self.config_entry.data[CONF_USERNAME]]["group"] self.ds["access"] = tmp_group[
]["policy"].split(",") tmp_user[self.config_entry.data[CONF_USERNAME]]["group"]
]["policy"].split(",")
if not self.accessrights_reported: if not self.accessrights_reported:
self.accessrights_reported = True self.accessrights_reported = True