mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Adapt rfxtrx to new device registry API (#176951)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user