mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
committed by
Pascal Vizeli
parent
1e352d37d0
commit
0863d50210
@@ -10,7 +10,7 @@ DATA_DISPATCHER = 'dispatcher'
|
||||
|
||||
|
||||
def dispatcher_connect(hass, signal, target):
|
||||
"""Connect a callable function to a singal."""
|
||||
"""Connect a callable function to a signal."""
|
||||
async_unsub = run_callback_threadsafe(
|
||||
hass.loop, async_dispatcher_connect, hass, signal, target).result()
|
||||
|
||||
@@ -23,7 +23,7 @@ def dispatcher_connect(hass, signal, target):
|
||||
|
||||
@callback
|
||||
def async_dispatcher_connect(hass, signal, target):
|
||||
"""Connect a callable function to a singal.
|
||||
"""Connect a callable function to a signal.
|
||||
|
||||
This method must be run in the event loop.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user