From 653c5cf5efad7d8b6832e435205e84b64f6076bb Mon Sep 17 00:00:00 2001 From: kloemi Date: Sun, 15 Dec 2024 11:39:11 +0100 Subject: [PATCH] Fix closing websocket --- custom_components/samsvolleyball/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/samsvolleyball/__init__.py b/custom_components/samsvolleyball/__init__.py index ef2c904..fff6526 100644 --- a/custom_components/samsvolleyball/__init__.py +++ b/custom_components/samsvolleyball/__init__.py @@ -215,7 +215,7 @@ async def periodic_work(self, now): else: if self.ws and self.connected: _LOGGER.info("%s - no game active - close socket", self.name) - self.disconnect() + await self.disconnect() if self.update_interval != UPDATE_INTERVAL_NO_GAME: _LOGGER.debug( "%s - no game active - reduce update interval to 60 min",