mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix unloading update listener in Unifi (#148471)
This commit is contained in:
parent
39ed877a17
commit
e387d4834f
@ -91,7 +91,9 @@ class UnifiHub:
|
||||
assert self.config.entry.unique_id is not None
|
||||
self.is_admin = self.api.sites[self.config.entry.unique_id].role == "admin"
|
||||
|
||||
self.config.entry.add_update_listener(self.async_config_entry_updated)
|
||||
self.config.entry.async_on_unload(
|
||||
self.config.entry.add_update_listener(self.async_config_entry_updated)
|
||||
)
|
||||
|
||||
@property
|
||||
def device_info(self) -> DeviceInfo:
|
||||
|
Loading…
x
Reference in New Issue
Block a user