Replace pop calls with del where the result is discarded in entity (#118340)

pull/118342/head
J. Nick Koston 2024-05-28 15:26:53 -10:00 committed by GitHub
parent 9de066d9e1
commit e0264c8604
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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(