added restored log for inverter
This commit is contained in:
2
main.py
2
main.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user