Fix error for stt

This commit is contained in:
jbouwh
2023-06-28 12:05:42 +00:00
parent ee4459f41e
commit 723cd191fe

View File

@@ -65,7 +65,10 @@ def async_setup_legacy(
return
try:
provider = await platform.async_get_engine(hass, p_config, discovery_info)
if hasattr(platform, "async_get_engine"):
provider = await platform.async_get_engine(
hass, p_config, discovery_info
)
provider.name = p_type
provider.hass = hass