mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +00:00
Improve type hints in keenetic_ndms2 (#77649)
This commit is contained in:
parent
747e538172
commit
f30a94daa1
@ -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…
x
Reference in New Issue
Block a user