fix
This commit is contained in:
parent
f478806729
commit
917016d59d
2
power.py
2
power.py
@ -88,7 +88,7 @@ def main():
|
||||
else:
|
||||
logger.info(f"UPS status changed to: {status}")
|
||||
prev_status = status
|
||||
if status = "OB DISCHRG" and battery < 50:
|
||||
if status == "OB DISCHRG" and battery < 50:
|
||||
logger.warning(f"Battery level low: {battery}% charge remaining.")
|
||||
send_email(
|
||||
f"{ups_id} battery low.",
|
||||
|
Loading…
Reference in New Issue
Block a user