mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 01:11:51 -04:00
Adjust service helper to not access DeviceEntry.config_entries (#181887)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user