Handle disabled devices (#25625)

This commit is contained in:
Robert Svensson authored and Paulus Schoutsen committed 2019-08-01 13:35:09 -07:00
1 parent 7168dd6cec
commit 56ca0edaa7
5 files changed
+14 -4

No files matched your search

@@ -304,7 +304,7 @@ class UniFiDeviceTracker(ScannerEntity):
@property
def available(self) -> bool:
"""Return if controller is available."""
return self.controller.available
return not self.device.disabled and self.controller.available
@property
def device_info(self):
+1 -1
View File
@@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/components/unifi",
"requirements": [
"aiounifi==8"
"aiounifi==9"
],
"dependencies": [],
"codeowners": [