From 3fdc98063e4e958e45a53a59e9f4c09d4add63b1 Mon Sep 17 00:00:00 2001 From: Erik Montnemery <erik@montnemery.com> Date: Thu, 10 Aug 2023 18:26:44 +0200 Subject: [PATCH] Adjust bond tests which create devices (#98183) --- tests/components/bond/test_init.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/components/bond/test_init.py b/tests/components/bond/test_init.py index 7dbd6696e18..33919219301 100644 --- a/tests/components/bond/test_init.py +++ b/tests/components/bond/test_init.py @@ -159,6 +159,7 @@ async def test_old_identifiers_are_removed(hass: HomeAssistant) -> None: domain=DOMAIN, data={CONF_HOST: "some host", CONF_ACCESS_TOKEN: "test-token"}, ) + config_entry.add_to_hass(hass) old_identifers = (DOMAIN, "device_id") new_identifiers = (DOMAIN, "ZXXX12345", "device_id") @@ -170,8 +171,6 @@ async def test_old_identifiers_are_removed(hass: HomeAssistant) -> None: name="old", ) - config_entry.add_to_hass(hass) - with patch_bond_bridge(), patch_bond_version( return_value={ "bondid": "ZXXX12345", -- GitLab