mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 01:07:10 +00:00
Close existing UDP server for ESPHome voice assistant (#101845)
This commit is contained in:
parent
ffe60102fd
commit
3b13c9129a
@ -327,7 +327,10 @@ class ESPHomeManager:
|
||||
) -> int | None:
|
||||
"""Start a voice assistant pipeline."""
|
||||
if self.voice_assistant_udp_server is not None:
|
||||
return None
|
||||
_LOGGER.warning("Voice assistant UDP server was not stopped")
|
||||
self.voice_assistant_udp_server.stop()
|
||||
self.voice_assistant_udp_server.close()
|
||||
self.voice_assistant_udp_server = None
|
||||
|
||||
hass = self.hass
|
||||
self.voice_assistant_udp_server = VoiceAssistantUDPServer(
|
||||
|
Loading…
x
Reference in New Issue
Block a user