From acaf9b4d38ad1ff27a70fecfe2cda840a380a47b Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Wed, 5 Nov 2025 13:51:48 -0500 Subject: [PATCH] Change ACMonitor class docstring and remove redundant comments --- Scripts/monitors.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Scripts/monitors.py b/Scripts/monitors.py index 4b1948d..a0a7415 100644 --- a/Scripts/monitors.py +++ b/Scripts/monitors.py @@ -105,18 +105,10 @@ class TemperatureMonitor(Monitor): print(f"Error logging temperature: {e}") class ACMonitor(Monitor): - """Monitor temperature and control AC automatically.""" def __init__(self, ac_controller, temp_sensor, target_temp=75.0, temp_swing=2.0, interval=30): - """ - ac_controller: ACController instance - temp_sensor: TemperatureSensor instance (inside temp) - target_temp: Target temperature in °F - temp_swing: Temperature swing allowed (prevents rapid cycling) - interval: Seconds between checks - """ super().__init__(interval) self.ac = ac_controller - self.sensor = temp_sensor + self.sensor = temp_sensor # <-- This is set from main.py self.target_temp = target_temp self.temp_swing = temp_swing self.last_notified_state = None