Skip to content

Allow string mac address in constructor - #241

Merged
mjg59 merged 1 commit into
mjg59:masterfrom
gpenverne:allow-mac-address-as-string
May 18, 2019
Merged

mjg59 merged 1 commit into
mjg59:masterfrom
gpenverne:allow-mac-address-as-string

Conversation

@gpenverne

@gpenverne gpenverne commented May 10, 2019

Copy link
Copy Markdown
Contributor

Not really a fix, but I lost a lot of time before understand that we have to pass the mac adress in byteArray...

To reproduce case:

import broadlink
device = broadlink.rm(("123.123.123.123", 80), "XX:XX:XX:XX:XX", 'RM2')

And error is trigered:
TypeError TypeError: an integer is required

(But this trouble doesn't apper in the python2 version)

I found an issue about this (an old one...): #8

@gpenverne
gpenverne marked this pull request as ready for review May 10, 2019 18:25
@mjg59
mjg59 merged commit 77f11c8 into mjg59:master May 18, 2019
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 this pull request may close these issues.

2 participants