host device_tracker calculate time since last successful availability check

This commit is contained in:
tomaae 2020-04-08 09:48:16 +02:00
parent e4e128ab4b
commit 65074df370
2 changed files with 12 additions and 1 deletions

View file

@ -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)