mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Use del instead of pop in the entity platform remove (#118337)
This commit is contained in:
parent
0cf574dc42
commit
fd9d4dbb34
@ -905,9 +905,9 @@ class EntityPlatform:
|
||||
|
||||
def remove_entity_cb() -> None:
|
||||
"""Remove entity from entities dict."""
|
||||
self.entities.pop(entity_id)
|
||||
self.domain_entities.pop(entity_id)
|
||||
self.domain_platform_entities.pop(entity_id)
|
||||
del self.entities[entity_id]
|
||||
del self.domain_entities[entity_id]
|
||||
del self.domain_platform_entities[entity_id]
|
||||
|
||||
entity.async_on_remove(remove_entity_cb)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user