Migrate calls to async_get_device in mobile_app tests (#178370)

This commit is contained in:
Erik Montnemery
2026-08-08 15:43:07 +02:00
committed by GitHub
parent 7c5eb60b7a
commit 73e48d2096
+3 -1
View File
@@ -1098,7 +1098,9 @@ async def test_webhook_handle_scan_tag(
webhook_client: TestClient,
) -> None:
"""Test that we can scan tags."""
device = device_registry.async_get_device(identifiers={(DOMAIN, "mock-device-id")})
[device] = device_registry.async_get_devices(
identifiers={(DOMAIN, "mock-device-id")}
)
assert device is not None
events = async_capture_events(hass, EVENT_TAG_SCANNED)