Skip to content

Commit

Permalink
Fix websockets 10 test error (#156)
Browse files Browse the repository at this point in the history
@lbbrhzn , suggest moving to 10 it improves handling of handshake and closing eg addresses a half close situation
  • Loading branch information
drc38 authored Sep 9, 2021
1 parent 663f1d9 commit 4b30e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ocpp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def create(hass: HomeAssistant, entry: ConfigEntry):
self.on_connect,
self.host,
self.port,
subprotocols=self.subprotocol,
subprotocols=[self.subprotocol],
ping_timeout=None,
close_timeout=10,
)
Expand Down

0 comments on commit 4b30e18

Please sign in to comment.