Do not allow coroutines to be passed to HassJob (#42073)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Paulus SchoutsenandJ. Nick Koston authored and GitHub committed 2020-10-19 23:25:33 +02:00
1 parent ec7f329807
commit b8417a2ce2
6 files changed
+39 -17

No files matched your search

@@ -60,7 +60,7 @@ async def async_setup(hass, config):
conf.get(CONF_PASSWORD),
)
hass.bus.async_listen(EVENT_HOMEASSISTANT_STOP, kafka.shutdown)
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, kafka.shutdown)
await kafka.start()