|
@@ -23,7 +23,7 @@ async def readjust_target(
|
|
|
):
|
|
|
try:
|
|
|
if project_id == 'Pj1101050030':
|
|
|
- if feedback:
|
|
|
+ if feedback != FeedbackValue.null:
|
|
|
controller = TemperatureAdjustmentController(project_id, space_id, feedback)
|
|
|
need_run_room_control = await controller.run()
|
|
|
else:
|
|
@@ -84,7 +84,7 @@ async def readjust_target_v2(
|
|
|
space_id: str = Query(..., max_length=50, regex='^Sp', alias='space-id'),
|
|
|
feedback: Optional[FeedbackValue] = Query(None)
|
|
|
):
|
|
|
- if feedback:
|
|
|
+ if feedback != FeedbackValue.null:
|
|
|
try:
|
|
|
controller = TemperatureAdjustmentController(project_id, space_id, feedback)
|
|
|
need_run_room_control = await controller.run()
|