mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-29 20:14:30 +02:00
host device_tracker calculate time since last successful availability check
This commit is contained in:
parent
e4e128ab4b
commit
65074df370
2 changed files with 12 additions and 1 deletions
|
@ -775,3 +775,7 @@ class MikrotikControllerData:
|
|||
# Update last seen
|
||||
if self.data["host"][uid]["available"]:
|
||||
self.data["host"][uid]["last-seen"] = utcnow()
|
||||
|
||||
# TEMP DEBUG
|
||||
for uid, vals in self.data["host"].items():
|
||||
_LOGGER.warning("HOST %s: %s", uid, vals)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue