Skip to content

apds9960: fix APSD/ADPS typos in constant and exception names.#20

Merged
nedseb merged 1 commit intomainfrom
fix/apds9960-typos
Mar 11, 2026
Merged

apds9960: fix APSD/ADPS typos in constant and exception names.#20
nedseb merged 1 commit intomainfrom
fix/apds9960-typos

Conversation

@nedseb
Copy link
Copy Markdown
Contributor

@nedseb nedseb commented Mar 11, 2026

Closes #14

Summary

  • const.py: rename APSD9960_BIT_AIENAPDS9960_BIT_AIEN
  • exceptions.py: rename ADPS9960InvalidDevIdAPDS9960InvalidDevId, ADPS9960InvalidModeAPDS9960InvalidMode, fix "valied""valid"
  • device.py: update references to the renamed exception classes

Test plan

  • Verify no remaining occurrences of APSD, ADPS, or valied
  • Verify all exception raises use the corrected class names

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes APDS9960 naming typos in the apds9960 driver to align constants/exceptions with the module name and correct an exception message typo (per #14).

Changes:

  • Renames APSD9960_BIT_AIENAPDS9960_BIT_AIEN in constants.
  • Renames exception classes ADPS9960InvalidDevId/ADPS9960InvalidModeAPDS9960InvalidDevId/APDS9960InvalidMode.
  • Updates device.py to raise the renamed exceptions and fixes "valied""valid" in the exception message.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
lib/apds9960/apds9960/const.py Corrects the AIEN bit constant name.
lib/apds9960/apds9960/exceptions.py Corrects exception class names and fixes a message typo.
lib/apds9960/apds9960/device.py Updates raised exception class references to match renamed exceptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/apds9960/apds9960/exceptions.py
Comment thread lib/apds9960/apds9960/exceptions.py
Comment thread lib/apds9960/apds9960/const.py
@nedseb nedseb merged commit 79106a2 into main Mar 11, 2026
6 checks passed
@nedseb nedseb deleted the fix/apds9960-typos branch March 11, 2026 09:58
@semantic-release-updater
Copy link
Copy Markdown

🎉 This PR is included in version 0.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apds9960: Fix APSD/ADPS typos in constant and exception names

2 participants