Improve type hints in keenetic_ndms2 (#77649)
This commit is contained in:
parent
747e538172
commit
f30a94daa1
1 changed files with 2 additions and 2 deletions
|
@ -97,10 +97,10 @@ class KeeneticTracker(ScannerEntity):
|
|||
)
|
||||
|
||||
@property
|
||||
def is_connected(self):
|
||||
def is_connected(self) -> bool:
|
||||
"""Return true if the device is connected to the network."""
|
||||
return (
|
||||
self._last_seen
|
||||
self._last_seen is not None
|
||||
and (dt_util.utcnow() - self._last_seen)
|
||||
< self._router.consider_home_interval
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue