From 7b157baed6b788041d378c575396d9e56005039f Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 10 Aug 2023 18:24:22 +0200 Subject: [PATCH] Adjust plex tests which create devices (#98204) --- tests/components/plex/test_device_handling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/plex/test_device_handling.py b/tests/components/plex/test_device_handling.py index 6abdc8cbeca..5887079ce21 100644 --- a/tests/components/plex/test_device_handling.py +++ b/tests/components/plex/test_device_handling.py @@ -15,6 +15,7 @@ async def test_cleanup_orphaned_devices( device_registry = dr.async_get(hass) entity_registry = er.async_get(hass) + entry.add_to_hass(hass) test_device = device_registry.async_get_or_create( config_entry_id=entry.entry_id, @@ -55,6 +56,7 @@ async def test_migrate_transient_devices( device_registry = dr.async_get(hass) entity_registry = er.async_get(hass) + entry.add_to_hass(hass) # Pre-create devices and entities to test device migration plexweb_device = device_registry.async_get_or_create(