Automaticially create an assist pipeline using cloud stt + tts (#91991)

* Automaticially create an assist pipeline using cloud stt + tts

* Return the id of the cloud enabled pipeline

* Wait for platforms to load

* Fix typing

* Fix startup race

* Update tests

* Create a cloud pipeline only when logging in

* Fix tests

* Tweak _async_resolve_default_pipeline_settings

* Improve assist_pipeline test coverage

* Improve cloud test coverage
This commit is contained in:
Erik Montnemery 2023-04-26 03:40:01 +02:00 committed by GitHub
parent 74e0341d83
commit 57a59d808b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 303 additions and 68 deletions

View file

@ -28,7 +28,9 @@ async def async_get_engine(hass, config, discovery_info=None):
"""Set up Cloud speech component."""
cloud: Cloud = hass.data[DOMAIN]
return CloudProvider(cloud)
cloud_provider = CloudProvider(cloud)
cloud.client.stt_platform_loaded.set()
return cloud_provider
class CloudProvider(Provider):