From 8813140ed5b1d73a2e332e1332f45f8f0bd684a2 Mon Sep 17 00:00:00 2001 From: Erik Montnemery <erik@montnemery.com> Date: Thu, 10 Aug 2023 18:24:36 +0200 Subject: [PATCH] Adjust threshold tests which create devices (#98208) --- tests/components/threshold/test_binary_sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/components/threshold/test_binary_sensor.py b/tests/components/threshold/test_binary_sensor.py index e26781029c5..c4b1dad78d5 100644 --- a/tests/components/threshold/test_binary_sensor.py +++ b/tests/components/threshold/test_binary_sensor.py @@ -597,6 +597,7 @@ async def test_device_id(hass: HomeAssistant) -> None: entity_registry = er.async_get(hass) source_config_entry = MockConfigEntry() + source_config_entry.add_to_hass(hass) source_device_entry = device_registry.async_get_or_create( config_entry_id=source_config_entry.entry_id, identifiers={("sensor", "identifier_test")}, -- GitLab