Handle disabled devices (#25625)
This commit is contained in:
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):
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/components/unifi",
|
||||
"requirements": [
|
||||
"aiounifi==8"
|
||||
"aiounifi==9"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": [
|
||||
|
||||
Reference in new issue
Block a user