소스 검색

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

chenhaiyang 4 년 전
부모
커밋
512ddd2d6c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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