added restored log for inverter

This commit is contained in:
2026-04-24 19:19:10 +05:30
parent f419890f65
commit 1458dc282d

View File

@@ -68,6 +68,8 @@ def check_inverter(status: bool):
if status: if status:
logger.debug("Inverter Online") logger.debug("Inverter Online")
if not inverter_online:
logger.info("Inverter restored")
inverter_online = True inverter_online = True
last_online = time.monotonic() last_online = time.monotonic()
return True return True