1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-31 00:22:12 +00:00

Fix conditional check (#89231)

This commit is contained in:
Marc Mueller
2023-03-06 14:04:36 +01:00
committed by Franck Nijhof
parent e3fe71f76e
commit 0fac12866d

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)