Add correct callback annotation in configurator (#62569)

This commit is contained in:
Paulus Schoutsen 2021-12-22 00:09:31 -08:00 committed by GitHub
parent 14e4216e29
commit 5580e87253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,6 +205,7 @@ class Configurator:
# it shortly after so that it is deleted when the client updates.
self.hass.states.async_set(entity_id, STATE_CONFIGURED)
@async_callback
def deferred_remove(event: Event):
"""Remove the request state."""
self.hass.states.async_remove(entity_id, context=event.context)