mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix multiple None
This commit is contained in:
parent
885749cd91
commit
bbba064acf
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user