mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Migrate ping to use async_update_entry to alter config entries (#110404)
This commit is contained in:
parent
7dcf2e94b4
commit
4a98f3f223
@ -50,8 +50,10 @@ async def test_disabled_after_import(
|
|||||||
entity_registry: er.EntityRegistry,
|
entity_registry: er.EntityRegistry,
|
||||||
):
|
):
|
||||||
"""Test if binary sensor is disabled after import."""
|
"""Test if binary sensor is disabled after import."""
|
||||||
config_entry.data = {CONF_IMPORTED_BY: "device_tracker"}
|
|
||||||
config_entry.add_to_hass(hass)
|
config_entry.add_to_hass(hass)
|
||||||
|
hass.config_entries.async_update_entry(
|
||||||
|
config_entry, data={CONF_IMPORTED_BY: "device_tracker"}
|
||||||
|
)
|
||||||
|
|
||||||
assert await async_setup_component(hass, DOMAIN, {})
|
assert await async_setup_component(hass, DOMAIN, {})
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user