mirror of
https://github.com/home-assistant/core.git
synced 2025-08-18 03:51:51 +02:00
Fixed some ci/circleci: static-check error
This commit is contained in:
@@ -59,8 +59,10 @@ class GoogleCloudTTSProvider(Provider):
|
||||
if key_file and os.path.isfile(path):
|
||||
os.environ[GOOGLE_APPLICATION_CREDENTIALS] = path
|
||||
if GOOGLE_APPLICATION_CREDENTIALS not in os.environ:
|
||||
_LOGGER.error("You need to specify valid"
|
||||
" GOOGLE_APPLICATION_CREDENTIALS file location.")
|
||||
_LOGGER.error(
|
||||
"You need to specify valid"
|
||||
" GOOGLE_APPLICATION_CREDENTIALS file location."
|
||||
)
|
||||
self.client = texttospeech.TextToSpeechClient()
|
||||
self.audio_config = texttospeech.types.AudioConfig(
|
||||
audio_encoding=texttospeech.enums.AudioEncoding.MP3
|
||||
|
Reference in New Issue
Block a user