Skip to content

Commit ebf3250

Browse files
committed
[bug] fixed websockets disconnection making some events not trigger intermitently
1 parent 0135c16 commit ebf3250

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

custom_components/connectedroom/connectedroom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ async def connectedroom_websocket_connect(
107107
def connect_handler(data):
108108
ConnectedRoomEvents(self, self.pusher, login["unique_id"])
109109

110+
self.pusher.connection.ping_interval=50
110111
self.pusher.connection.bind("pusher:connection_established", connect_handler)
111112
self.pusher.connect()
112113

custom_components/connectedroom/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
WSS_HOST = "ws.connectedroom.io"
99
WSS_KEY = "RiWn4MQFEc3yEEdbWYRFu8mV7HvkBW"
1010

11-
VERSION = "0.4.0"
11+
VERSION = "0.4.1"

custom_components/connectedroom/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"iot_class": "cloud_push",
1111
"issue_tracker": "https://github.com/glaliberte/connected-room-hass/issues",
1212
"requirements": ["pysher==1.0.8"],
13-
"version": "0.4.0"
13+
"version": "0.4.1"
1414
}

0 commit comments

Comments
 (0)