فهرست منبع

update get_equipment_command_test logic

chenhaiyang 4 سال پیش
والد
کامیت
bb7ee07f9e
1فایلهای تغییر یافته به همراه1 افزوده شده و 7 حذف شده
  1. 1 7
      app/api/routers/equipment.py

+ 1 - 7
app/api/routers/equipment.py

@@ -28,13 +28,7 @@ async def get_equipment_command_test(
 ):
     if equip_type.value == EquipmentName.FCU:
         if project_id == 'Pj1101050030':
-            fcu = await get_fcu_control_result(project_id, equip_id)
-            output = {
-                'EquipSwitchSet': 1 if fcu.running_status else 0,
-                'WorkModeSet': 3,
-                'FanGearSet': fcu.air_valve_speed.value,
-                'IndoorAirTempSet': fcu.setting_temperature
-            }
+            output = await get_fcu_control_result(project_id, equip_id)
         else:
             output = await get_fcu_q_learning_control_result(project_id, equip_id)
     elif equip_type.value == EquipmentName.VAV: