Browse Source

fix a bug

chenhaiyang 2 years ago
parent
commit
7c3af2ffe1
2 changed files with 2 additions and 6 deletions
  1. 1 5
      app/controllers/targets/temperature.py
  2. 1 1
      docker-compose.yml

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

@@ -582,11 +582,7 @@ class TemperatureTargetControllerV3:
                 or feedback == FeedbackValue.so_cold
         ):
             step_size = SimpleStepSizeCalculator.run(feedback)
-            new_actual_target = NewTemperatureTargetBuilder(
-                self.data["realtime_temperature"],
-                self.data["current_target"],
-                step_size,
-            ).build()
+            new_actual_target = self.data["current_target"] + step_size
             need_run_room_control = True
             if new_actual_target != self.data["current_target"]:
                 new_global_target = SimpleGlobalTemperatureTargetBuilder(

+ 1 - 1
docker-compose.yml

@@ -2,7 +2,7 @@ version: "3"
 
 services:
   app:
-      image: registry.persagy.com/sagacloud/saga_algo_api:0.5.17
+      image: registry.persagy.com/sagacloud/saga_algo_api:0.5.18
       container_name: saga_algo_api
       ports:
         - "8002:8002"