actually is possible

This commit is contained in:
J. Nick Koston
2025-06-24 18:47:09 +02:00
parent 919e7d47bc
commit 5c09591f54

View File

@@ -105,17 +105,8 @@ def async_static_info_updated(
entity_id = entry.entity_id entity_id = entry.entity_id
break break
# If entity not found in registry, add it as new # Entity must exist in registry since we found it in current_infos
if entity_id is None: assert entity_id is not None
_LOGGER.info(
"Entity with unique_id %s not found in registry when device_id changed from %s to %s, adding as new entity",
old_unique_id,
old_info.device_id,
info.device_id,
)
entity = entity_type(entry_data, platform.domain, info, state_type)
add_entities.append(entity)
continue
updates: dict[str, Any] = {} updates: dict[str, Any] = {}