Fix multiple None

This commit is contained in:
G Johansson 2024-11-24 19:18:56 +00:00
parent 885749cd91
commit bbba064acf

View File

@ -932,7 +932,7 @@ class section:
def __call__(self, value: Any) -> Any:
"""Validate input."""
if not self.options["multiple"]:
if not self.options.get("multiple"):
return self.schema(value)
if not isinstance(value, list):
raise vol.Invalid("Value should be a list")