mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix threading error in qwikswitch (#62173)
This commit is contained in:
parent
9164a74fcc
commit
8c777011b6
@ -221,7 +221,7 @@ async def async_setup(hass, config):
|
||||
@callback
|
||||
def async_start(_):
|
||||
"""Start listening."""
|
||||
hass.async_add_job(qsusb.listen, callback_qs_listen)
|
||||
qsusb.listen(callback_qs_listen)
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, async_start)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user