Skip to content

Commit

Permalink
Fix closing websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
kloemi committed Dec 15, 2024
1 parent 7b3fc3b commit 653c5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/samsvolleyball/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 653c5cf

Please sign in to comment.