Fix demo TTS (#28608)
parent
6999a712ef
commit
76aae0c23e
|
@ -16,7 +16,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
|
||||
def get_engine(hass, config, discovery_info=None):
|
||||
"""Set up Demo speech component."""
|
||||
return DemoProvider(config[CONF_LANG])
|
||||
return DemoProvider(config.get(CONF_LANG, DEFAULT_LANG))
|
||||
|
||||
|
||||
class DemoProvider(Provider):
|
||||
|
|
Loading…
Reference in New Issue