Adjust service helper to not access DeviceEntry.config_entries (#181887)

This commit is contained in:
Erik Montnemery
2026-09-11 12:18:28 +02:00
committed by GitHub
parent bcb9bc5deb
commit c3483bf5bd
+1 -1
View File
@@ -433,7 +433,7 @@ async def async_extract_config_entry_ids(
if (
device := dev_reg.async_get(device_id, include_composite_devices=False)
) is not None:
config_entry_ids.update(device.config_entries)
config_entry_ids.add(device.config_entry_id)
for entity_id in referenced.referenced | referenced.indirectly_referenced:
entry = ent_reg.async_get(entity_id)