Replace pop calls with del where the result is discarded in restore_state (#118339)
This commit is contained in:
parent
79bc179ce8
commit
f3fa843b9d
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ class RestoreStateData:
|
|||
state, extra_data, dt_util.utcnow()
|
||||
)
|
||||
|
||||
self.entities.pop(entity_id)
|
||||
del self.entities[entity_id]
|
||||
|
||||
|
||||
class RestoreEntity(Entity):
|
||||
|
|
Loading…
Add table
Reference in a new issue