diff --git a/ovos_PHAL_plugin_homeassistant/logic/socketclient.py b/ovos_PHAL_plugin_homeassistant/logic/socketclient.py index 8beb352..8c03055 100644 --- a/ovos_PHAL_plugin_homeassistant/logic/socketclient.py +++ b/ovos_PHAL_plugin_homeassistant/logic/socketclient.py @@ -46,7 +46,7 @@ async def authenticate(self): async def _connect(self): try: uri = f"{self.url}/api/websocket" - self.websocket = await websockets.connect(uri) + self.websocket = await websockets.connect(uri=uri, close_timeout=5, open_timeout=5) # Wait for the auth_required message message = await self.websocket.recv()