-
Notifications
You must be signed in to change notification settings - Fork 56
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
Refactored PyPortal to use PortalBase #99
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this successfully with the simpletest, as well as "PyPortal User Interface" and "PyPortal Bitcoin" learn guide projects. Everything working well on all of those.
On the Cleveland art photo learn project I did find an error using this version of the library though:
Traceback (most recent call last):
File "code.py", line 32, in <module>
File "/lib/adafruit_pyportal/__init__.py", line 149, in __init__
AttributeError: 'PyPortal' object has no attribute '_debug'
Looks like a good start to the refactor to me.Thanks for working on this!
Thanks for finding that @FoamyGuy. |
I've been running the weather demo on my PyPortal over the weekend without issues. |
Ok, I feel good about this PR. It will continue to fail checks until adafruit/Adafruit_CircuitPython_PortalBase#8 is merged in and released. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-tested those PyPortal projects and everything is working well now.
Changes look good to me.
Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 5.0.0 from 4.0.0: > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#99 from makermelissa/master > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#100 from makermelissa/fix-precommit > Added pre-commit-config file > Added pre-commit and SPDX copyright Updating https://github.com/adafruit/Adafruit_CircuitPython_TM to 1.0.1 from 1.0.0: > Merge pull request adafruit/Adafruit_CircuitPython_TM#1 from adeanzan/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_BusDevice to 5.0.3 from 5.0.2: > Merge pull request adafruit/Adafruit_CircuitPython_BusDevice#61 from mstaack/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.1.0 from 1.0.2: > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#8 from makermelissa/main
This requires adafruit/Adafruit_CircuitPython_PortalBase#8 to work. Making a draft for the moment until I can do some more thorough testing.