Adapt rfxtrx to new device registry API (#176951)

This commit is contained in:
Erik Montnemery
2026-07-21 08:38:43 +02:00
committed by GitHub
parent 22143e08ff
commit dadfe98258
+3 -2
View File
@@ -201,8 +201,9 @@ async def async_setup_internal(hass: HomeAssistant, entry: ConfigEntry) -> None:
find_possible_pt2262_device(pt2262_devices, event.device.id_string)
pt2262_devices.add(event.device.id_string)
device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, *device_id)}, # type: ignore[arg-type]
device_entry = device_registry.async_get_device_by_identifier(
(DOMAIN, *device_id), # type: ignore[arg-type]
entry.entry_id,
)
if device_entry:
event_data[ATTR_DEVICE_ID] = device_entry.id