highing666 пре 3 година
родитељ
комит
6d23a35344
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/controllers/equipment/pau/switch.py

+ 2 - 1
app/controllers/equipment/pau/switch.py

@@ -35,10 +35,11 @@ async def build_acatfu_switch_set(params: ACATFUSwitchSetRequest) -> str:
     pau = PAU(
         running_status=params.running_status,
         in_cloud_status=params.in_cloud_status,
-        on_time=params.off_time,
+        on_time=params.on_time,
         off_time=params.off_time
     )
     action = await PAUSwitch(pau).build_next_action(params.is_workday)
+    logger.debug(action)
     if not params.is_workday:
         action = 'off'