From d17f1ae494b34a7ccf50888c4d1750e54a15a4ea Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 25 Jan 2025 11:57:31 -0600 Subject: [PATCH] fix: increase websocket max size to 5MB from 1MB Closes #62 --- ovos_PHAL_plugin_homeassistant/logic/socketclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_PHAL_plugin_homeassistant/logic/socketclient.py b/ovos_PHAL_plugin_homeassistant/logic/socketclient.py index 8c03055..6bb1d19 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=uri, close_timeout=5, open_timeout=5) + self.websocket = await websockets.connect(uri=uri, close_timeout=5, open_timeout=5, max_size=5242880) # Wait for the auth_required message message = await self.websocket.recv()