Allow tradfri groups for new imported entries (#17310)
* Clean up leftover config schema option * Allow import groups via new config yaml setup * Fix and add test * Add a test without groups for legacy import * Change default import groups to False * Fix I/O in test
This commit is contained in:
1 parent
05ae8f9dd4
commit
8778b707f1
5 files changed
+96
-26
No files matched your search
@@ -58,7 +58,7 @@ async def test_config_json_host_not_imported(hass):
|
||||
assert len(mock_init.mock_calls) == 0
|
||||
|
||||
|
||||
async def test_config_json_host_imported(hass):
|
||||
async def test_config_json_host_imported(hass, mock_gateway_info):
|
||||
"""Test that we import a configured host."""
|
||||
with patch('homeassistant.components.tradfri.load_json',
|
||||
return_value={'mock-host': {'key': 'some-info'}}):
|
||||
|
||||
Reference in new issue
Block a user