Fix listener running in foreground for System Bridge integration (#91391)

Co-authored-by: J. Nick Koston <nick@koston.org>
pull/91463/head
Aidan Timson 2023-04-15 14:49:05 +01:00 committed by GitHub
parent a9db39a833
commit 3bc023986c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -188,7 +188,10 @@ class SystemBridgeDataUpdateCoordinator(
session=async_get_clientsession(self.hass),
)
self.hass.async_create_task(self._listen_for_data())
self.hass.async_create_background_task(
self._listen_for_data(),
name="System Bridge WebSocket Listener",
)
await self.websocket_client.register_data_listener(
RegisterDataListener(modules=MODULES)