Move stop trigger
This commit is contained in:
@@ -877,12 +877,12 @@ class WakeStreamingSatellite(SatelliteBase):
|
|||||||
# Stop streaming before event_from_server is called because it will
|
# Stop streaming before event_from_server is called because it will
|
||||||
# play the "done" WAV.
|
# play the "done" WAV.
|
||||||
self.is_streaming = False
|
self.is_streaming = False
|
||||||
await self.trigger_streaming_stop()
|
|
||||||
|
|
||||||
await super().event_from_server(event)
|
await super().event_from_server(event)
|
||||||
|
|
||||||
if RunSatellite.is_type(event.type) or Transcript.is_type(event.type):
|
if RunSatellite.is_type(event.type) or Transcript.is_type(event.type):
|
||||||
self.is_streaming = False
|
self.is_streaming = False
|
||||||
|
await self.trigger_streaming_stop()
|
||||||
await self._send_wake_detect()
|
await self._send_wake_detect()
|
||||||
_LOGGER.info("Waiting for wake word")
|
_LOGGER.info("Waiting for wake word")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user