UniFi - Logs spam with not adding disabled entity (#34479)

* Proposed solution, unfortunately this makes the implementation less pretty

* Clarify why mac is registered in init
This commit is contained in:
Robert Svensson 2020-04-21 06:17:14 +02:00 committed by GitHub
parent bc5a2da7b7
commit f12bd7ad99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 5 deletions

View file

@ -36,8 +36,8 @@ class UniFiClient(UniFiBase):
def __init__(self, client, controller) -> None:
"""Set up client."""
super().__init__(controller)
self.client = client
super().__init__(controller)
self._is_wired = self.client.mac not in controller.wireless_clients
self.is_blocked = self.client.blocked