Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [5.0.1]
- fix: [Periodic disconnects of WebSocketClient](https://github.com/sinricpro/python-sdk/issues/79)

## [5.0.0]
- feat: Speaker, GarageDoor examples added.
- feat: setMode, setRangeValue - instance id support added.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sinricpro"
version = "5.0.0"
version = "5.0.1"
description = "Official SinricPro SDK for Python - Control IoT devices with Alexa and Google Home"
authors = [{name = "SinricPro", email = "support@sinric.pro"}]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion sinricpro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
This file is part of the SinricPro Python SDK (https://github.com/sinricpro/)
"""

__version__ = "5.0.0"
__version__ = "5.0.1"

from sinricpro.core.sinric_pro import SinricPro, SinricProConfig
from sinricpro.core.sinric_pro_device import SinricProDevice
Expand Down
7 changes: 6 additions & 1 deletion sinricpro/core/websocket_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ async def connect(self) -> None:
SinricProLogger.debug(f"WebSocket headers: {headers}")

try:
self.ws = await websockets.connect(uri, additional_headers=headers)
self.ws = await websockets.connect(
uri,
additional_headers=headers,
ping_interval=None,
ping_timeout=None,
)
self.connected = True
SinricProLogger.debug("WebSocket connected")

Expand Down
Loading