Skip to content

Commit 77b361f

Browse files
authored
Merge pull request #80 from sinricpro/5.0.0-dev
fix: [Periodic disconnects of WebSocketClient](#79)
2 parents a651080 + 126ba34 commit 77b361f

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [5.0.1]
2+
- fix: [Periodic disconnects of WebSocketClient](https://github.com/sinricpro/python-sdk/issues/79)
3+
14
## [5.0.0]
25
- feat: Speaker, GarageDoor examples added.
36
- feat: setMode, setRangeValue - instance id support added.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sinricpro"
7-
version = "5.0.0"
7+
version = "5.0.1"
88
description = "Official SinricPro SDK for Python - Control IoT devices with Alexa and Google Home"
99
authors = [{name = "SinricPro", email = "support@sinric.pro"}]
1010
readme = "README.md"

sinricpro/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This file is part of the SinricPro Python SDK (https://github.com/sinricpro/)
1010
"""
1111

12-
__version__ = "5.0.0"
12+
__version__ = "5.0.1"
1313

1414
from sinricpro.core.sinric_pro import SinricPro, SinricProConfig
1515
from sinricpro.core.sinric_pro_device import SinricProDevice

sinricpro/core/websocket_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ async def connect(self) -> None:
114114
SinricProLogger.debug(f"WebSocket headers: {headers}")
115115

116116
try:
117-
self.ws = await websockets.connect(uri, additional_headers=headers)
117+
self.ws = await websockets.connect(
118+
uri,
119+
additional_headers=headers,
120+
ping_interval=None,
121+
ping_timeout=None,
122+
)
118123
self.connected = True
119124
SinricProLogger.debug("WebSocket connected")
120125

0 commit comments

Comments
 (0)