Fix conditional check (#89231)

pull/89238/head
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
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)