mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Close existing UDP server for ESPHome voice assistant (#101845)
This commit is contained in:
parent
257686fcfe
commit
f0317f0d59
@ -327,7 +327,10 @@ class ESPHomeManager:
|
|||||||
) -> int | None:
|
) -> int | None:
|
||||||
"""Start a voice assistant pipeline."""
|
"""Start a voice assistant pipeline."""
|
||||||
if self.voice_assistant_udp_server is not None:
|
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
|
hass = self.hass
|
||||||
self.voice_assistant_udp_server = VoiceAssistantUDPServer(
|
self.voice_assistant_udp_server = VoiceAssistantUDPServer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user