Skip to content
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

Argument missing at line 167 #30

Open
frogale opened this issue Mar 19, 2018 · 4 comments
Open

Argument missing at line 167 #30

frogale opened this issue Mar 19, 2018 · 4 comments

Comments

@frogale
Copy link

frogale commented Mar 19, 2018

Hello.. It looks like you have error at line 167..
RM3Device = broadlink.rm((RealIPAddress, RealPort), RealMACAddress)
TypeError: init() takes exactly 4 arguments (3 given)

After adding "RealTimeout" as 4th argument it is working just fine...

@ghost
Copy link

ghost commented Mar 28, 2018

@frogale I have exactly the same error. Can you please help what file you exactly changed and post your code?

apspot pushed a commit to apspot/BlackBeanControl that referenced this issue Apr 7, 2018
…ly 4 arguments (3 given): python-broadlink need a 4th parameter: device model/type
@jnherm
Copy link

jnherm commented Jul 22, 2018

I have edited line 167:
RM3Device = broadlink.rm((RealIPAddress, RealPort), RealMACAddress, RealTimeout)

made it to work.

@JDrewes
Copy link

JDrewes commented Apr 7, 2019

I had the same problem, frogale's solution made it work for me as well.

zaddach pushed a commit to zaddach/BlackBeanControl that referenced this issue Oct 22, 2019
…ly 4 arguments (3 given): python-broadlink need a 4th parameter: device model/type
@lamerjack
Copy link

now the error is:
Traceback (most recent call last):
File "./BlackBeanControl.py", line 168, in
RM3Device.auth()
File "/usr/local/lib/python2.7/dist-packages/broadlink-0.13.0-py2.7.egg/broadlink/init.py", line 221, in auth
response = self.send_packet(0x65, payload)
File "/usr/local/lib/python2.7/dist-packages/broadlink-0.13.0-py2.7.egg/broadlink/init.py", line 271, in send_packet
checksum = adler32(payload, 0xbeaf) & 0xffff
TypeError: adler32() argument 1 must be string or read-only buffer, not bytearray

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants