BlackBeanControl icon indicating copy to clipboard operation
BlackBeanControl copied to clipboard

Argument missing at line 167

Open frogale opened this issue 6 years ago • 4 comments

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...

frogale avatar Mar 19 '18 21:03 frogale

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

ghost avatar Mar 28 '18 15:03 ghost

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

made it to work.

jnherm avatar Jul 22 '18 10:07 jnherm

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

JDrewes avatar Apr 07 '19 13:04 JDrewes

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

lamerjack avatar Apr 15 '20 22:04 lamerjack