mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Replace pop calls with del where the result is discarded in entity (#118340)
This commit is contained in:
parent
9de066d9e1
commit
e0264c8604
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user