Adjust bond tests which create devices (#98183)

This commit is contained in:
Erik Montnemery 2023-08-10 18:26:44 +02:00 committed by GitHub
parent fcdfeb74c8
commit 3fdc98063e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",