Fix demo TTS (#28608)

pull/28551/head^2
Bram Kragten 2019-11-07 13:43:43 +01:00 committed by Pascal Vizeli
parent 6999a712ef
commit 76aae0c23e
1 changed files with 1 additions and 1 deletions

View File

@ -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):