mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-16 04:14:31 +02:00
correctly report all entities as unavailable in UI when mikrotik is offline
This commit is contained in:
parent
270c7f8274
commit
06727236da
3 changed files with 7 additions and 7 deletions
|
@ -145,7 +145,7 @@ class MikrotikControllerPortDeviceTracker(ScannerEntity):
|
|||
return "{}-{}".format(self._inst.lower(), self._data['port-mac-address'])
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
def available(self) -> bool:
|
||||
"""Return if controller is available."""
|
||||
return self._ctrl.connected()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue