1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Bugfix mqtt socket memory error (#6501)

* Bugfix mqtt socket memory error

* Fix tests

* Fix lint
This commit is contained in:
Pascal Vizeli
2017-03-09 15:31:43 +01:00
committed by Paulus Schoutsen
parent 855756cb2a
commit 20fcd1f0e2
3 changed files with 15 additions and 34 deletions

View File

@@ -51,7 +51,7 @@ def async_dispatcher_connect(hass, signal, target):
def dispatcher_send(hass, signal, *args):
"""Send signal and data."""
hass.add_job(async_dispatcher_send, hass, signal, *args)
hass.loop.call_soon_threadsafe(async_dispatcher_send, hass, signal, *args)
@callback