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