Adjust ps4 tests which create devices (#98205)

This commit is contained in:
Erik Montnemery 2023-08-10 18:24:25 +02:00 committed by GitHub
parent 7b157baed6
commit 6ea7011a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,6 +325,7 @@ async def test_device_info_is_assummed(
) -> None:
"""Test that device info is assumed if device is unavailable."""
# Create a device registry entry with device info.
MOCK_CONFIG.add_to_hass(hass)
device_registry.async_get_or_create(
config_entry_id=MOCK_ENTRY_ID,
name=MOCK_HOST_NAME,