mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 10:47:15 +00:00
Add log message when connecting to Core WebSocket
This commit is contained in:
parent
3d74d2bb7c
commit
8e026bd945
@ -98,6 +98,7 @@ class WSClient:
|
||||
|
||||
async def start_listener(self) -> None:
|
||||
"""Start listening to the websocket."""
|
||||
_LOGGER.debug("Starting WebSocket listener")
|
||||
if not self.connected:
|
||||
raise HomeAssistantWSConnectionError("Not connected when start listening")
|
||||
|
||||
@ -202,6 +203,7 @@ class HomeAssistantWebSocket(CoreSysAttributes):
|
||||
return self._client
|
||||
|
||||
await self.sys_homeassistant.api.ensure_access_token()
|
||||
_LOGGER.debug("Connecting via WebSocket to Home Assistant Core")
|
||||
client = await WSClient.connect_with_auth(
|
||||
self.sys_websession,
|
||||
self.sys_loop,
|
||||
|
Loading…
x
Reference in New Issue
Block a user