设置状态返回内容修正

This commit is contained in:
c1pher-cn 2025-04-08 23:39:08 +08:00
parent ab2f996c7b
commit 3b6c1fbc6d

View file

@ -56,7 +56,7 @@ def hass_set_state(conn, entity_id='', state={}):
conn.loop
)
ha_response = future.result()
return ActionResponse(action=Action.REQLLM, result="执行成功", response=ha_response)
return ActionResponse(Action.REQLLM, ha_response, None)
except Exception as e:
logger.bind(tag=TAG).error(f"处理设置属性意图错误: {e}")