Przeglądaj źródła

fix a bug that won't set need_run_room_control flag to True when receive a cold or hot feedback

chenhaiyang 4 lat temu
rodzic
commit
512ddd2d6c
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      app/controllers/targets/temperature.py

+ 1 - 3
app/controllers/targets/temperature.py

@@ -425,14 +425,12 @@ class TemperatureTargetControllerV2:
                 self.data['current_target'],
                 step_size
             ).build()
+            need_run_room_control = True
             if new_actual_target != self.data['current_target']:
                 new_global_target = ExpSmoothingTemperatureTargetBuilder(
                     self.data['target'],
                     self.data['previous_changes']
                 ).build(new_actual_target)
-                need_run_room_control = True
-            else:
-                need_run_room_control = False
         else:
             need_run_room_control = False