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

UnboundLocalError: local variable 'addr_type' referenced before assignment #21

Closed
SeNike opened this issue May 16, 2017 · 3 comments
Closed
Labels

Comments

@SeNike
Copy link

SeNike commented May 16, 2017

Hi Betree,

I'm having some problems connecting to my bulbs (V8)

pi@raspberrypi:~ $ sudo magicblueshell -c 'set_color red' -m e7:34:44:5d:f7:f3
Traceback (most recent call last):
File "/usr/local/bin/magicblueshell", line 9, in
load_entry_point('magicblue==0.3.0', 'console_scripts', 'magicblueshell')()
File "/usr/local/lib/python3.4/dist-packages/magicblue/magicblueshell.py", line 271, in main
shell.cmd_connect([params.mac_address])
File "/usr/local/lib/python3.4/dist-packages/magicblue/magicblueshell.py", line 144, in cmd_connect
addr_type=addr_type)
UnboundLocalError: local variable 'addr_type' referenced before assignment

@Betree Betree added the bug label May 16, 2017
@Betree
Copy link
Owner

Betree commented May 16, 2017

Thanks for the bug report, I'll publish a fix in the next hours

@Betree
Copy link
Owner

Betree commented May 16, 2017

Please try again, it should work now

@SeNike
Copy link
Author

SeNike commented May 17, 2017

Now it work great. Thank you!

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

No branches or pull requests

2 participants