Don't set 'assist in progess' flag on wake_word-end (#113585)

This commit is contained in:
Kostas Chatzikokolakis 2024-05-28 19:09:59 +03:00 committed by GitHub
parent f0d7f48930
commit 14132b5090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -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(

View File

@ -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()