Skip to content

Lazily parse secrets data #80

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

Merged
merged 1 commit into from
Aug 26, 2022
Merged

Lazily parse secrets data #80

merged 1 commit into from
Aug 26, 2022

Conversation

tekktrik
Copy link
Member

@tekktrik tekktrik commented Aug 25, 2022

Resolves #79 by moving the parsing of the secrets data to connect(). This allows for initialization of the MagTag object when a non-standard secrets dictionary is given. This is done when an alternative way of connecting to WiFi besides the MagTag-specific connect() is desired (such as wifi.radio.connect()). This was valid functionality before #, and this just restores it.

Have not tested.

@tekktrik tekktrik requested a review from makermelissa August 25, 2022 22:35
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, though it's been so long since I worked on this and it's been modified quite a bit since that I can't even remember how it used to work. I didn't test, though I have no reason to believe it wouldn't work. My main concern is if changes break/fix compatibility with existing code and from reading notes it sounds like this is supposed to fix compatibility.

@tekktrik tekktrik merged commit 5858a2f into adafruit:main Aug 26, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 27, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_GUVX_I2C to 1.0.2 from 1.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_GUVX_I2C#3 from sokratisvas/add-type-annotations

Updating https://github.com/adafruit/Adafruit_CircuitPython_INA219 to 3.4.20 from 3.4.19:
  > Merge pull request adafruit/Adafruit_CircuitPython_INA219#34 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_INA260 to 1.3.10 from 1.3.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_INA260#20 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_SCD30 to 2.2.9 from 2.2.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_SCD30#32 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1327 to 1.3.9 from 1.3.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1327#16 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1675 to 1.1.15 from 1.1.14:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1675#13 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1680 to 1.0.12 from 1.0.11:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#8 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.14.3 from 1.14.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#80 from tekktrik/bugfix/multiple-networks
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.

PR #65 broke the MagTag constructor in some circumstances
2 participants