Fix conditional check (#89231)

pull/89381/head
Marc Mueller 2023-03-06 14:04:36 +01:00 committed by Franck Nijhof
parent e3fe71f76e
commit 0fac12866d
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ def ensure_zone(value):
if value is None:
raise vol.Invalid("zone value is None")
if str(value) not in ZONES is None:
if str(value) not in ZONES:
raise vol.Invalid("zone not valid")
return str(value)