update: clean up code formatting
This commit is contained in:
parent
95e159ee5d
commit
b3c56864ac
@ -93,20 +93,20 @@ class ScheduleMonitor:
|
||||
# Update AC settings if provided
|
||||
if 'ac_target' in schedule:
|
||||
self.ac_monitor.target_temp = float(schedule['ac_target'])
|
||||
self.config['ac_target'] = float(schedule['ac_target']) # <-- ADD THIS
|
||||
self.config['ac_target'] = float(schedule['ac_target'])
|
||||
|
||||
if 'ac_swing' in schedule:
|
||||
self.ac_monitor.temp_swing = float(schedule['ac_swing'])
|
||||
self.config['ac_swing'] = float(schedule['ac_swing']) # <-- ADD THIS
|
||||
self.config['ac_swing'] = float(schedule['ac_swing'])
|
||||
|
||||
# Update heater settings if provided
|
||||
if 'heater_target' in schedule:
|
||||
self.heater_monitor.target_temp = float(schedule['heater_target'])
|
||||
self.config['heater_target'] = float(schedule['heater_target']) # <-- ADD THIS
|
||||
self.config['heater_target'] = float(schedule['heater_target'])
|
||||
|
||||
if 'heater_swing' in schedule:
|
||||
self.heater_monitor.temp_swing = float(schedule['heater_swing'])
|
||||
self.config['heater_swing'] = float(schedule['heater_swing']) # <-- ADD THIS
|
||||
self.config['heater_swing'] = float(schedule['heater_swing'])
|
||||
|
||||
# Save updated config to file so targets persist
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user