mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 02:21:40 +02:00
Fix multiple None
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user