From 6803a62368a4d88a60cf34ff2bdca72149c541da Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 10 Aug 2023 18:26:13 +0200 Subject: [PATCH] Adjust ruckus_unleashed tests which create devices (#98206) --- tests/components/ruckus_unleashed/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/ruckus_unleashed/__init__.py b/tests/components/ruckus_unleashed/__init__.py index 5c50f845064..1e50ce7dec7 100644 --- a/tests/components/ruckus_unleashed/__init__.py +++ b/tests/components/ruckus_unleashed/__init__.py @@ -71,9 +71,11 @@ async def init_integration(hass) -> MockConfigEntry: entry = mock_config_entry() entry.add_to_hass(hass) # Make device tied to other integration so device tracker entities get enabled + other_config_entry = MockConfigEntry() + other_config_entry.add_to_hass(hass) dr.async_get(hass).async_get_or_create( name="Device from other integration", - config_entry_id=MockConfigEntry().entry_id, + config_entry_id=other_config_entry.entry_id, connections={(dr.CONNECTION_NETWORK_MAC, TEST_CLIENT[API_MAC])}, ) with patch(