Fix old ESPHome entities not being removed when configuration changes

fixes #140756
This commit is contained in:
J. Nick Koston 2025-03-28 19:00:09 -10:00
parent cc8771ea43
commit 262520d8cd
No known key found for this signature in database

View File

@ -95,7 +95,7 @@ async def platform_async_setup_entry(
info and state updates.
"""
entry_data = entry.runtime_data
entry_data.info[info_type] = {}
entry_data.info.setdefault(info_type, {})
platform = entity_platform.async_get_current_platform()
on_static_info_update = functools.partial(
async_static_info_updated,