Send/receive Voice Assistant audio via ESPHome native API (#114800)
* Protobuf audio test * Remove extraneous code * Rework voice assistant pipeline * Move variables * Fix reading flags * Dont directly put to queue * Bump aioesphomeapi to 24.0.0 * Update tests - Add more tests for API pipeline - Convert some udp tests to use api pipeline - Update fixtures for new device info flags * Fix bad merge --------- Co-authored-by: Michael Hansen <mike@rhasspy.org>
This commit is contained in:
parent
cad4c3c0c2
commit
68384bba67
11 changed files with 495 additions and 230 deletions
|
@ -33,7 +33,9 @@ async def async_setup_entry(
|
|||
|
||||
entry_data = DomainData.get(hass).get_entry_data(entry)
|
||||
assert entry_data.device_info is not None
|
||||
if entry_data.device_info.voice_assistant_version:
|
||||
if entry_data.device_info.voice_assistant_feature_flags_compat(
|
||||
entry_data.api_version
|
||||
):
|
||||
async_add_entities([EsphomeAssistInProgressBinarySensor(entry_data)])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue