forked from peter/volvo2mqtt
Fix wrong climate time duration
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ def on_message(client, userdata, msg):
|
|||||||
api_thread.start()
|
api_thread.start()
|
||||||
assumed_climate_state[vin] = "ON"
|
assumed_climate_state[vin] = "ON"
|
||||||
# Starting timer to disable climate after 30 mins
|
# Starting timer to disable climate after 30 mins
|
||||||
climate_timer = Timer(1 * 60, volvo.disable_climate, (vin, ))
|
climate_timer = Timer(30 * 60, volvo.disable_climate, (vin, ))
|
||||||
climate_timer.start()
|
climate_timer.start()
|
||||||
update_car_data()
|
update_car_data()
|
||||||
elif payload == "OFF":
|
elif payload == "OFF":
|
||||||
|
|||||||
Reference in New Issue
Block a user