mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Add correct callback annotation in configurator (#62569)
This commit is contained in:
@@ -205,6 +205,7 @@ class Configurator:
|
|||||||
# it shortly after so that it is deleted when the client updates.
|
# it shortly after so that it is deleted when the client updates.
|
||||||
self.hass.states.async_set(entity_id, STATE_CONFIGURED)
|
self.hass.states.async_set(entity_id, STATE_CONFIGURED)
|
||||||
|
|
||||||
|
@async_callback
|
||||||
def deferred_remove(event: Event):
|
def deferred_remove(event: Event):
|
||||||
"""Remove the request state."""
|
"""Remove the request state."""
|
||||||
self.hass.states.async_remove(entity_id, context=event.context)
|
self.hass.states.async_remove(entity_id, context=event.context)
|
||||||
|
Reference in New Issue
Block a user