From 7310aa43f3363dab17c4c4d3b612a055b1c98bfa Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 24 Jun 2025 17:05:49 +0200 Subject: [PATCH] cleanups --- homeassistant/components/esphome/entity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/esphome/entity.py b/homeassistant/components/esphome/entity.py index e7b995e2b4f..c2e6d8ec001 100644 --- a/homeassistant/components/esphome/entity.py +++ b/homeassistant/components/esphome/entity.py @@ -80,6 +80,7 @@ def async_static_info_updated( new_unique_id = build_device_unique_id(device_info.mac_address, info) entity_id = ent_reg.async_get_entity_id(platform.domain, DOMAIN, old_unique_id) + # Entity must exist in registry since we found it in current_infos assert entity_id is not None updates: dict[str, Any] = {}