-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use "timeout" argument in gateway instantiation #262
Comments
Thanks for the report! I see the problem. We need to pop the timeout parameters from pymysensors/mysensors/gateway_tcp.py Lines 75 to 76 in 56c08d5
|
The same issue applies to use of 'reconnect_timeout' parameter and serial gateway as well. |
alex18-d
pushed a commit
to alex18-d/pymysensors
that referenced
this issue
Jan 19, 2022
…ss constructors chain: everyone takes params it wants and ignores the rest silently
I noticed this too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version:
pymysensors 0.20.1, installed by pip3
Environment:
Ubuntu 18.04.4 LTS, x86_64, python 3.6.9
Expected behavior
Instantiation of a tcp gateway object with altered timeouts. (If my testing of different versions isn't completely off, this worked in 0.18.0, but not from 0.19.0 and onwards.)
Actual behavior
TypeError: init() got an unexpected keyword argument 'timeout'
How to recreate:
Use code in README to instantiate a tcp gateway with a timeout as below
The text was updated successfully, but these errors were encountered: