mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 17:15:19 +02:00
Fix error for stt
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user