diff --git a/power.py b/power.py index dcd41ef..b763468 100644 --- a/power.py +++ b/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.",