diff --git a/thermostat.py b/thermostat.py index 182e87a..874a32e 100644 --- a/thermostat.py +++ b/thermostat.py @@ -326,7 +326,7 @@ def thermostat_loop(): # logging.debug("Relay already off.") time.sleep(load_shedder_interval) -t1 = Thread(thermostat_loop) +t1 = Thread(target=thermostat_loop) logging.info("====== Ended successfully ======") #import argparse