Add an optional extended description…
This commit is contained in:
Fabian Affolter 2017-06-08 15:53:12 +02:00 committed by Pascal Vizeli
parent 1e352d37d0
commit 0863d50210
13 changed files with 27 additions and 30 deletions

View file

@ -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.
"""