Fix conditional check (#89231)
parent
76cc4c9c08
commit
0c042e8f72
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue