Handle disabled devices (#25625)

This commit is contained in:
Robert Svensson authored and GitHub committed 2019-08-01 17:22:08 +02:00
1 parent 84abb57ebc
commit ceac35797e
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):