mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-22 11:44:23 +02:00
device tracker returns away when tracking is disabled #24
This commit is contained in:
parent
6a8103ee47
commit
92da2eb9a7
1 changed files with 3 additions and 0 deletions
|
@ -275,6 +275,9 @@ class MikrotikControllerHostDeviceTracker(ScannerEntity):
|
|||
@property
|
||||
def is_connected(self):
|
||||
"""Return true if the host is connected to the network."""
|
||||
if not self.option_track_network_hosts:
|
||||
return False
|
||||
|
||||
if self._data["source"] in ["capsman", "wireless"]:
|
||||
return self._data["available"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue