Don't swallow all errors when checking for config validator platform (#42058)
This commit is contained in:
1 parent
8d4675713a
commit
440570244d
6 files changed
+54
-13
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(EVENT_HOMEASSISTANT_STOP, kafka.shutdown)
|
||||
|
||||
await kafka.start()
|
||||
|
||||
@@ -130,7 +130,7 @@ class KafkaManager:
|
||||
self._hass.bus.async_listen(EVENT_STATE_CHANGED, self.write)
|
||||
await self._producer.start()
|
||||
|
||||
async def shutdown(self):
|
||||
async def shutdown(self, _):
|
||||
"""Shut the manager down."""
|
||||
await self._producer.stop()
|
||||
|
||||
|
||||
Reference in new issue
Block a user