mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 02:56:31 +00:00
parent
6646eee504
commit
24ded99286
@ -479,9 +479,9 @@ def _single_ui_option(
|
||||
"""Validate a single element."""
|
||||
ui_node = {"name": key}
|
||||
|
||||
# If multible
|
||||
# If multiple
|
||||
if multiple:
|
||||
ui_node["mutliple"] = True
|
||||
ui_node["multiple"] = True
|
||||
|
||||
# Parse extend data from type
|
||||
match = RE_SCHEMA_ELEMENT.match(value)
|
||||
|
@ -36,7 +36,7 @@ def test_group_schema():
|
||||
"optional": True,
|
||||
"schema": [
|
||||
{"name": "name", "required": True, "type": "string"},
|
||||
{"mutliple": True, "name": "data", "required": True, "type": "string"},
|
||||
{"multiple": True, "name": "data", "required": True, "type": "string"},
|
||||
{"name": "path", "optional": True, "type": "string"},
|
||||
],
|
||||
"type": "schema",
|
||||
@ -65,7 +65,7 @@ def test_group_list():
|
||||
"optional": True,
|
||||
"schema": [
|
||||
{"name": "name", "required": True, "type": "string"},
|
||||
{"mutliple": True, "name": "data", "optional": True, "type": "string"},
|
||||
{"multiple": True, "name": "data", "optional": True, "type": "string"},
|
||||
{"name": "path", "optional": True, "type": "string"},
|
||||
],
|
||||
"type": "schema",
|
||||
|
Loading…
x
Reference in New Issue
Block a user