From e0264c860436461e6b7dfee6a8318a98919a4b12 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 28 May 2024 15:26:53 -1000 Subject: [PATCH] Replace pop calls with del where the result is discarded in entity (#118340) --- homeassistant/helpers/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index c6f18314012..d4e160c2672 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -1475,7 +1475,7 @@ class Entity( # The check for self.platform guards against integrations not using an # EntityComponent and can be removed in HA Core 2024.1 if self.platform: - entity_sources(self.hass).pop(self.entity_id) + del entity_sources(self.hass)[self.entity_id] @callback def _async_registry_updated(