Skip to content

Commit

Permalink
Fix config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
definitio committed Nov 22, 2020
1 parent d8e0ab9 commit 1d0bf66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/rhvoice/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d0bf66

Please sign in to comment.