Replace pop calls with del where the result is discarded in restore_state (#118339)

This commit is contained in:
J. Nick Koston 2024-05-28 17:14:40 -10:00 committed by GitHub
parent 79bc179ce8
commit f3fa843b9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):