highing666 před 3 roky
rodič
revize
70f9dc9878
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      app/controllers/equipment/vav.py

+ 1 - 2
app/controllers/equipment/vav.py

@@ -309,8 +309,7 @@ async def get_vav_control_v2(db: Session, project_id: str, equipment_id: str) ->
 async def build_acatva_instructions(params: ACATVAInstructionsRequest) -> ACATVAInstructions:
     space_params = []
     for sp in params.spaces:
-        temp_sp = sp.dict()
-        temp_sp = Space(**temp_sp)
+        temp_sp = Space(**sp.dict())
         temp_sp.diff = temp_sp.temperature_target - temp_sp.realtime_temperature
         space_params.append(temp_sp)