diff --git a/homeassistant/components/cloud/__init__.py b/homeassistant/components/cloud/__init__.py index fc0261dec83..dbf0ca7e08a 100644 --- a/homeassistant/components/cloud/__init__.py +++ b/homeassistant/components/cloud/__init__.py @@ -50,9 +50,9 @@ from .const import ( CONF_RELAYER_SERVER, CONF_REMOTE_SNI_SERVER, CONF_REMOTESTATE_SERVER, + CONF_SERVICEHANDLERS_SERVER, CONF_THINGTALK_SERVER, CONF_USER_POOL_ID, - CONF_VOICE_SERVER, DOMAIN, MODE_DEV, MODE_PROD, @@ -119,7 +119,7 @@ CONFIG_SCHEMA = vol.Schema( vol.Optional(CONF_REMOTE_SNI_SERVER): str, vol.Optional(CONF_REMOTESTATE_SERVER): str, vol.Optional(CONF_THINGTALK_SERVER): str, - vol.Optional(CONF_VOICE_SERVER): str, + vol.Optional(CONF_SERVICEHANDLERS_SERVER): str, } ) }, diff --git a/homeassistant/components/cloud/const.py b/homeassistant/components/cloud/const.py index 49b4b905ed3..7aa39efbf07 100644 --- a/homeassistant/components/cloud/const.py +++ b/homeassistant/components/cloud/const.py @@ -58,7 +58,7 @@ CONF_RELAYER_SERVER = "relayer_server" CONF_REMOTE_SNI_SERVER = "remote_sni_server" CONF_REMOTESTATE_SERVER = "remotestate_server" CONF_THINGTALK_SERVER = "thingtalk_server" -CONF_VOICE_SERVER = "voice_server" +CONF_SERVICEHANDLERS_SERVER = "servicehandlers_server" MODE_DEV = "development" MODE_PROD = "production" diff --git a/homeassistant/components/cloud/manifest.json b/homeassistant/components/cloud/manifest.json index 3f065868794..a5486888a01 100644 --- a/homeassistant/components/cloud/manifest.json +++ b/homeassistant/components/cloud/manifest.json @@ -8,5 +8,5 @@ "integration_type": "system", "iot_class": "cloud_push", "loggers": ["hass_nabucasa"], - "requirements": ["hass-nabucasa==0.65.0"] + "requirements": ["hass-nabucasa==0.66.1"] } diff --git a/homeassistant/components/cloud/stt.py b/homeassistant/components/cloud/stt.py index f78e877a2f5..9499bc0cc11 100644 --- a/homeassistant/components/cloud/stt.py +++ b/homeassistant/components/cloud/stt.py @@ -85,7 +85,7 @@ class CloudProvider(Provider): language=metadata.language, ) except VoiceError as err: - _LOGGER.debug("Voice error: %s", err) + _LOGGER.error("Voice error: %s", err) return SpeechResult(None, SpeechResultState.ERROR) # Return Speech as Text diff --git a/homeassistant/components/cloud/tts.py b/homeassistant/components/cloud/tts.py index 22016b2c56c..6c29a1768b9 100644 --- a/homeassistant/components/cloud/tts.py +++ b/homeassistant/components/cloud/tts.py @@ -1,5 +1,7 @@ """Support for the cloud for text to speech service.""" +import logging + from hass_nabucasa import Cloud from hass_nabucasa.voice import MAP_VOICE, TTS_VOICES, AudioOutput, VoiceError import voluptuous as vol @@ -20,6 +22,8 @@ ATTR_GENDER = "gender" SUPPORT_LANGUAGES = list(TTS_VOICES) +_LOGGER = logging.getLogger(__name__) + def validate_lang(value): """Validate chosen gender or language.""" @@ -123,7 +127,8 @@ class CloudProvider(Provider): voice=options.get(ATTR_VOICE), output=options[ATTR_AUDIO_OUTPUT], ) - except VoiceError: + except VoiceError as err: + _LOGGER.error("Voice error: %s", err) return (None, None) return (str(options[ATTR_AUDIO_OUTPUT]), data) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 06e207d6f74..2529df6d381 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -22,7 +22,7 @@ cryptography==40.0.2 dbus-fast==1.85.0 fnv-hash-fast==0.3.1 ha-av==10.0.0 -hass-nabucasa==0.65.0 +hass-nabucasa==0.66.1 hassil==1.0.6 home-assistant-bluetooth==1.10.0 home-assistant-frontend==20230411.1 diff --git a/requirements_all.txt b/requirements_all.txt index f78002ec4db..fb7913ba2f2 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -872,7 +872,7 @@ ha-philipsjs==3.0.0 habitipy==0.2.0 # homeassistant.components.cloud -hass-nabucasa==0.65.0 +hass-nabucasa==0.66.1 # homeassistant.components.splunk hass_splunk==0.1.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index d690a3a3f08..fb8eda38f52 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -673,7 +673,7 @@ ha-philipsjs==3.0.0 habitipy==0.2.0 # homeassistant.components.cloud -hass-nabucasa==0.65.0 +hass-nabucasa==0.66.1 # homeassistant.components.conversation hassil==1.0.6