Browse Source

fix a bug

highing666 3 years ago
parent
commit
8dc1081792

+ 5 - 1
app/controllers/equipment/ahu/supply_air_temperature_set.py

@@ -131,6 +131,7 @@ async def get_planned(project_id: str, device_id: str) -> float:
     vav_boxes_lit = vav_boxes_params['vav_boxes_list']
     async with AsyncClient() as client:
         platform = DataPlatformService(client, project_id)
+        duoduo = Duoduo(client, project_id)
 
         current_supply_air_temperature = await platform.get_realtime_supply_air_temperature(device_id)
         return_air_temperature = await platform.query_realtime_return_air_temperature(device_id)
@@ -143,6 +144,8 @@ async def get_planned(project_id: str, device_id: str) -> float:
         )
         on_off_set_duration = await platform.get_duration(InfoCode.equip_switch_set, device_id, 20 * 60)
 
+        season = await duoduo.get_season()
+
         # if hot_water_valve_opening_set_duration[-1]['value'] == 0.0:
         #     thermal_mode = ThermalMode.cooling
         if chill_water_valve_opening_set_duration[-1]['value'] == 0.0:
@@ -170,7 +173,8 @@ async def get_planned(project_id: str, device_id: str) -> float:
         return_air_temperature,
         thermal_mode,
         is_off_to_on,
-        is_thermal_mode_switched
+        is_thermal_mode_switched,
+        season
     )
     next_supply_air_temperature_set = controller.build()
 

+ 0 - 0
app/controllers/equipment/vrf/__init__.py


+ 0 - 0
app/controllers/equipment/vrf/basic.py