Add device_tracker scanners to hass.config.components (#49063)
This commit is contained in:
parent
1145856c45
commit
9585defca0
2 changed files with 6 additions and 5 deletions
|
@ -120,6 +120,7 @@ async def test_reading_yaml_config(hass, yaml_devices):
|
|||
assert device.config_picture == config.config_picture
|
||||
assert device.consider_home == config.consider_home
|
||||
assert device.icon == config.icon
|
||||
assert f"{device_tracker.DOMAIN}.test" in hass.config.components
|
||||
|
||||
|
||||
@patch("homeassistant.components.device_tracker.const.LOGGER.warning")
|
||||
|
@ -558,6 +559,8 @@ async def test_bad_platform(hass):
|
|||
with assert_setup_component(0, device_tracker.DOMAIN):
|
||||
assert await async_setup_component(hass, device_tracker.DOMAIN, config)
|
||||
|
||||
assert f"{device_tracker.DOMAIN}.bad_platform" not in hass.config.components
|
||||
|
||||
|
||||
async def test_adding_unknown_device_to_config(mock_device_tracker_conf, hass):
|
||||
"""Test the adding of unknown devices to configuration file."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue