mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Don't set 'assist in progess' flag on wake_word-end (#113585)
This commit is contained in:
parent
f0d7f48930
commit
14132b5090
@ -420,8 +420,6 @@ class WyomingSatellite:
|
||||
self.hass.add_job(self._client.write_event(Detect().event()))
|
||||
elif event.type == assist_pipeline.PipelineEventType.WAKE_WORD_END:
|
||||
# Wake word detection
|
||||
self.device.set_is_active(True)
|
||||
|
||||
# Inform client of wake word detection
|
||||
if event.data and (wake_word_output := event.data.get("wake_word_output")):
|
||||
detection = Detection(
|
||||
|
@ -324,9 +324,6 @@ async def test_satellite_pipeline(hass: HomeAssistant) -> None:
|
||||
assert mock_client.detection is not None
|
||||
assert mock_client.detection.name == "test_wake_word"
|
||||
|
||||
# "Assist in progress" sensor should be active now
|
||||
assert device.is_active
|
||||
|
||||
# Speech-to-text started
|
||||
pipeline_event_callback(
|
||||
assist_pipeline.PipelineEvent(
|
||||
@ -340,6 +337,9 @@ async def test_satellite_pipeline(hass: HomeAssistant) -> None:
|
||||
assert mock_client.transcribe is not None
|
||||
assert mock_client.transcribe.language == "en"
|
||||
|
||||
# "Assist in progress" sensor should be active now
|
||||
assert device.is_active
|
||||
|
||||
# Push in some audio
|
||||
mock_client.inject_event(
|
||||
AudioChunk(rate=16000, width=2, channels=1, audio=bytes(1024)).event()
|
||||
|
Loading…
x
Reference in New Issue
Block a user