catduckgnaf / ryobi_gdo

Latest and Greatest Home Assistant Custom Integration for Ryobi GDO
Other
10 stars 6 forks source link

Add receive_timeout to RyobiWebSocket ws_connect to fix issues with dropped connections #63

Closed CJOWood closed 7 months ago

CJOWood commented 7 months ago

Proposed change

Fixes an issue where the aiohttp library websocket connection seems to silently drop out, only throwing an exception once a command has been attempted. receive_timeout should ensure we get a response from Ryobi's server within the currently set 5 minutes. This may not be an ideal value and is an estimate based on another library's fix for the same/similar issue (they have implemented aiohttp slightly differently).

Type of change

Additional information

This PR is likely related to (external library) issue:

Checklist

If user exposed functionality or configuration variables are added/changed: