Fix conditional check (#89231)

This commit is contained in:
Marc Mueller 2023-03-06 14:04:36 +01:00 committed by GitHub
parent 76cc4c9c08
commit 0c042e8f72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)