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

Refactored PyPortal to use PortalBase #99

Merged
merged 11 commits into from
Jan 12, 2021

Conversation

makermelissa
Copy link
Contributor

This requires adafruit/Adafruit_CircuitPython_PortalBase#8 to work. Making a draft for the moment until I can do some more thorough testing.

@makermelissa makermelissa requested a review from a team January 9, 2021 01:13
@makermelissa makermelissa mentioned this pull request Jan 9, 2021
Copy link
Contributor

@FoamyGuy FoamyGuy left a 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!

@makermelissa
Copy link
Contributor Author

Thanks for finding that @FoamyGuy.

@makermelissa
Copy link
Contributor Author

I've been running the weather demo on my PyPortal over the weekend without issues.

@makermelissa
Copy link
Contributor Author

Ok, I feel good about this PR. It will continue to fail checks until adafruit/Adafruit_CircuitPython_PortalBase#8 is merged in and released.

@makermelissa makermelissa marked this pull request as ready for review January 11, 2021 22:01
Copy link
Contributor

@FoamyGuy FoamyGuy left a 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.

@makermelissa makermelissa merged commit 729a90e into adafruit:master Jan 12, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 12, 2021
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
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.

None yet

2 participants