1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Allow components with empty list config (i.e. person) in packages (#25827)

* Fix #23424

* mypy Lists
This commit is contained in:
Johann Kellerman
2019-08-11 01:30:33 +02:00
committed by Paulus Schoutsen
parent ce0edf8360
commit 8b9d0593b1
3 changed files with 20 additions and 25 deletions

View File

@@ -735,7 +735,7 @@ async def test_merge_once_only_lists(hass):
"""Test if we have a merge for a comp that may occur only once. Lists."""
packages = {
"pack_2": {
"api": {"list_1": ["item_2", "item_3"], "list_2": ["item_1"], "list_3": []}
"api": {"list_1": ["item_2", "item_3"], "list_2": ["item_4"], "list_3": []}
}
}
config = {
@@ -745,7 +745,8 @@ async def test_merge_once_only_lists(hass):
await config_util.merge_packages_config(hass, config, packages)
assert config["api"] == {
"list_1": ["item_1", "item_2", "item_3"],
"list_2": ["item_1"],
"list_2": ["item_4"],
"list_3": [],
}