mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Allow passing in device_id to pipeline run WS API (#95139)
This commit is contained in:
@@ -56,6 +56,7 @@ def async_register_websocket_api(hass: HomeAssistant) -> None:
|
||||
vol.Optional("input"): dict,
|
||||
vol.Optional("pipeline"): str,
|
||||
vol.Optional("conversation_id"): vol.Any(str, None),
|
||||
vol.Optional("device_id"): vol.Any(str, None),
|
||||
vol.Optional("timeout"): vol.Any(float, int),
|
||||
},
|
||||
),
|
||||
@@ -105,6 +106,7 @@ async def websocket_run(
|
||||
# Arguments to PipelineInput
|
||||
input_args: dict[str, Any] = {
|
||||
"conversation_id": msg.get("conversation_id"),
|
||||
"device_id": msg.get("device_id"),
|
||||
}
|
||||
|
||||
if start_stage == PipelineStage.STT:
|
||||
|
||||
Reference in New Issue
Block a user