UniFi - refactor entity management (#34367)
* Move removal of sensor entities into a base class * Fix martins comments on sensors * Reflect sensor changes on device_tracker platform * Reflect sensor changes on switch platform * Improve layering * Make sure to clean up entity and device registry when removing entities * Fix martins comments
This commit is contained in:
1 parent
a80ce60e75
commit
e5a861dc90
7 files changed
+252
-381
No files matched your search
@@ -72,6 +72,8 @@ class UniFiController:
|
||||
self._site_name = None
|
||||
self._site_role = None
|
||||
|
||||
self.entities = {}
|
||||
|
||||
@property
|
||||
def controller_id(self):
|
||||
"""Return the controller ID."""
|
||||
|
||||
Reference in new issue
Block a user