Adjust velbus to not access DeviceEntry.config_entries (#181743)

This commit is contained in:
Erik Montnemery
2026-09-09 18:03:53 +02:00
committed by GitHub
parent 16de2ee9b9
commit ae105f7d74
+1 -1
View File
@@ -192,7 +192,7 @@ async def async_remove_config_entry_device(
on the bus, it may be recreated when the integration is reloaded or
started again.
"""
if config_entry.entry_id not in device_entry.config_entries:
if device_entry.config_entry_id != config_entry.entry_id:
return False
dev_reg = dr.async_get(hass)
for sub_device in dr.async_entries_for_config_entry(dev_reg, config_entry.entry_id):