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 in Version 1.02 #5

Open
pmendiuk opened this issue Jun 5, 2020 · 1 comment
Open

UnboundLocalError in Version 1.02 #5

pmendiuk opened this issue Jun 5, 2020 · 1 comment

Comments

@pmendiuk
Copy link

pmendiuk commented Jun 5, 2020

I was previously running 0.15.4 without issue and just installed the version 1.02 which has the following errors:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/squeezebox_controller/__init__.py", line 17, in cached_                                           f
    return f(self, details, *args)
  File "/home/pi/.local/lib/python3.7/site-packages/squeezebox_controller/__init__.py", line 42, in needs_p                                           layer_f
    return f(self, details, *args)
  File "/home/pi/.local/lib/python3.7/site-packages/squeezebox_controller/__init__.py", line 122, in simple                                           _command
    self._make_request(self.player_macs[details['player']], commands[command]['command'])
UnboundLocalError: local variable 'command' referenced before assignment

@samtherussell
Copy link
Owner

Sorry about that, I had released it before I had checked it over (test pipeline was still failing even :-/)
I've pushed a new release now, with the fix. The idea now is that you can use the uppercase codes or some english phrases (I'm trying to hook it in to Mycroft AI personal assistant). Anyway, let me know if there's anything else.

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

No branches or pull requests

2 participants