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

Power_Switch referenced before assignment - TerrariumPI won't start #262

Closed
Natrixz opened this issue Feb 16, 2019 · 2 comments
Closed

Power_Switch referenced before assignment - TerrariumPI won't start #262

Natrixz opened this issue Feb 16, 2019 · 2 comments

Comments

@Natrixz
Copy link

Natrixz commented Feb 16, 2019

Traceback (most recent call last):
File "/home/nick/TerrariumPI/terrariumPI.py", line 26, in
terrariumEngine = terrariumEngine()
File "/home/nick/TerrariumPI/terrariumEngine.py", line 135, in init
self.__load_power_switches()
File "/home/nick/TerrariumPI/terrariumEngine.py", line 285, in __load_power_switches
if power_switch.get_id() in prev_state:
UnboundLocalError: local variable 'power_switch' referenced before assignment

After the latest pull it won't start anymore :(
(wanted to test the new notifications haha)

Edit: Rolling back 1 change will fix the startup. so it's commit 239
(f7a339c) messing it up =)

theyosh added a commit that referenced this issue Feb 16, 2019
@theyosh
Copy link
Owner

theyosh commented Feb 16, 2019

Damm, thanks! I do like the remark about the rollback. That makes it indeed clear where the fuckup it :D
Should work again

@Natrixz
Copy link
Author

Natrixz commented Feb 16, 2019

Your welcome! =)

Fix is confirmed ;)

@Natrixz Natrixz closed this as completed Feb 16, 2019
theyosh added a commit that referenced this issue Mar 22, 2021
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