Handle disabled devices (#25625)
This commit is contained in:
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):
|
||||
|
||||
Reference in new issue
Block a user