Browse Source

delete unused function

highing666 2 years ago
parent
commit
cd9d9b8a44
1 changed files with 0 additions and 15 deletions
  1. 0 15
      app/controllers/equipment/vrf/basic.py

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

@@ -312,21 +312,6 @@ async def query_status_time(db: Session, device_id: str) -> Tuple[datetime, date
     return feedback_time, high_time
 
 
-def transform_mode(mode_value: float) -> VRFMode:
-    try:
-        if mode_value == 1.0 or mode_value == 6.0:
-            mode = VRFMode.cooling
-        elif mode_value == 2.0 or mode_value == 7.0:
-            mode = VRFMode.heating
-        elif mode_value == 4.0 or mode_value == 8.0:
-            mode = VRFMode.ventilation
-        else:
-            mode = VRFMode.unknown
-    except TypeError:
-        raise MissingIOTDataError
-    return mode
-
-
 @logger.catch
 @missing_iot_data_handler
 async def build_acatvi_instructions(params: ACATVIInstructionsRequest) -> Dict: