mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Remove useless _handle_pipeline_event function in ESPHome (#109484)
This commit is contained in:
parent
897ea272d6
commit
5bda4be88f
@ -21,7 +21,6 @@ from aioesphomeapi import (
|
|||||||
UserService,
|
UserService,
|
||||||
UserServiceArgType,
|
UserServiceArgType,
|
||||||
VoiceAssistantAudioSettings,
|
VoiceAssistantAudioSettings,
|
||||||
VoiceAssistantEventType,
|
|
||||||
)
|
)
|
||||||
from awesomeversion import AwesomeVersion
|
from awesomeversion import AwesomeVersion
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
@ -330,11 +329,6 @@ class ESPHomeManager:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
def _handle_pipeline_event(
|
|
||||||
self, event_type: VoiceAssistantEventType, data: dict[str, str] | None
|
|
||||||
) -> None:
|
|
||||||
self.cli.send_voice_assistant_event(event_type, data)
|
|
||||||
|
|
||||||
def _handle_pipeline_finished(self) -> None:
|
def _handle_pipeline_finished(self) -> None:
|
||||||
self.entry_data.async_set_assist_pipeline_state(False)
|
self.entry_data.async_set_assist_pipeline_state(False)
|
||||||
|
|
||||||
@ -358,7 +352,7 @@ class ESPHomeManager:
|
|||||||
self.voice_assistant_udp_server = VoiceAssistantUDPServer(
|
self.voice_assistant_udp_server = VoiceAssistantUDPServer(
|
||||||
hass,
|
hass,
|
||||||
self.entry_data,
|
self.entry_data,
|
||||||
self._handle_pipeline_event,
|
self.cli.send_voice_assistant_event,
|
||||||
self._handle_pipeline_finished,
|
self._handle_pipeline_finished,
|
||||||
)
|
)
|
||||||
port = await self.voice_assistant_udp_server.start_server()
|
port = await self.voice_assistant_udp_server.start_server()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user