mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
Adjust velbus to not access DeviceEntry.config_entries (#181743)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user