diff --git a/homeassistant/components/google_cloud/tts.py b/homeassistant/components/google_cloud/tts.py index 975567845ae..e5374a2151c 100644 --- a/homeassistant/components/google_cloud/tts.py +++ b/homeassistant/components/google_cloud/tts.py @@ -259,7 +259,11 @@ class GoogleCloudTTSProvider(Provider): vol.Optional(CONF_TEXT_TYPE, default=self._text_type): TEXT_TYPE_SCHEMA, } ) - options = options_schema(options) + try: + options = options_schema(options) + except vol.Invalid as err: + _LOGGER.error("Error: %s when validating options: %s", err, options) + return None, None encoding = options[CONF_ENCODING] gender = texttospeech.SsmlVoiceGender[options[CONF_GENDER]]