Skip to content

Commit

Permalink
add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Jul 22, 2023
1 parent 22935dc commit c0037d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weconnect_mqtt/weconnect_mqtt_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def main(): # noqa: C901 # pylint: disable=too-many-branches,too-many-statemen
weConnect = weconnect.WeConnect(username=username, password=password, spin=spin, updateAfterLogin=False,
updateCapabilities=mqttCLient.updateCapabilities, updatePictures=mqttCLient.updatePictures,
maxAgePictures=args.pictureCache, selective=mqttCLient.selective,
forceReloginAfter=21600)
forceReloginAfter=21600, timeout=180)
mqttCLient.connectWeConnect(weConnect)
break
except exceptions.ConnectionError as e:
Expand Down

0 comments on commit c0037d6

Please sign in to comment.