mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Adjust plex tests which create devices (#98204)
This commit is contained in:
parent
9d3be60b05
commit
7b157baed6
@ -15,6 +15,7 @@ async def test_cleanup_orphaned_devices(
|
|||||||
|
|
||||||
device_registry = dr.async_get(hass)
|
device_registry = dr.async_get(hass)
|
||||||
entity_registry = er.async_get(hass)
|
entity_registry = er.async_get(hass)
|
||||||
|
entry.add_to_hass(hass)
|
||||||
|
|
||||||
test_device = device_registry.async_get_or_create(
|
test_device = device_registry.async_get_or_create(
|
||||||
config_entry_id=entry.entry_id,
|
config_entry_id=entry.entry_id,
|
||||||
@ -55,6 +56,7 @@ async def test_migrate_transient_devices(
|
|||||||
|
|
||||||
device_registry = dr.async_get(hass)
|
device_registry = dr.async_get(hass)
|
||||||
entity_registry = er.async_get(hass)
|
entity_registry = er.async_get(hass)
|
||||||
|
entry.add_to_hass(hass)
|
||||||
|
|
||||||
# Pre-create devices and entities to test device migration
|
# Pre-create devices and entities to test device migration
|
||||||
plexweb_device = device_registry.async_get_or_create(
|
plexweb_device = device_registry.async_get_or_create(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user