From e38754a83686b5fa6b3537f7b04353206a766ae3 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 23 Oct 2021 12:14:15 +0200 Subject: [PATCH] Address Watson TTS review comment (#58277) --- homeassistant/components/watson_tts/tts.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/watson_tts/tts.py b/homeassistant/components/watson_tts/tts.py index b02235d4d45..93e6b98fbd6 100644 --- a/homeassistant/components/watson_tts/tts.py +++ b/homeassistant/components/watson_tts/tts.py @@ -191,9 +191,7 @@ class WatsonTTSProvider(Provider): def get_tts_audio(self, message, language=None, options=None): """Request TTS file from Watson TTS.""" response = self.service.synthesize( - text=message, - accept=self.output_format, - voice=options.get(CONF_VOICE, self.default_voice), + text=message, accept=self.output_format, voice=options[CONF_VOICE] ).get_result() return (CONTENT_TYPE_EXTENSIONS[self.output_format], response.content)