From 1d0bf664523bf723ef3412de6702b36d69346b37 Mon Sep 17 00:00:00 2001 From: definitio <37266727+definitio@users.noreply.github.com> Date: Sun, 22 Nov 2020 16:14:49 +0400 Subject: [PATCH] Fix config validation --- custom_components/rhvoice/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/rhvoice/tts.py b/custom_components/rhvoice/tts.py index 43a87e7..345c7ca 100644 --- a/custom_components/rhvoice/tts.py +++ b/custom_components/rhvoice/tts.py @@ -55,7 +55,7 @@ vol.Coerce(int), vol.Range(0, 100) ), vol.Optional(CONF_VOICE, default=DEFAULT_VOICE): vol.All( - cv.string, vol.In(chain(*SUPPORTED_LANGUAGES.values())) + cv.string, vol.In(list(chain(*SUPPORTED_LANGUAGES.values()))) ), vol.Optional(CONF_VOLUME, default=DEFAULT_VOLUME): vol.All( vol.Coerce(int), vol.Range(0, 100)