Skip to content

Re-export mpos.lights from the top-level mpos package#1

Closed
tjorim wants to merge 2 commits into
mainfrom
re-export-lights-manager
Closed

Re-export mpos.lights from the top-level mpos package#1
tjorim wants to merge 2 commits into
mainfrom
re-export-lights-manager

Conversation

@tjorim

@tjorim tjorim commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Every other framework follows the documented "from mpos import X" import convention (architecture/frameworks/), enforced via re-exports in mpos/init.py. mpos.lights (LightsManager) was the one exception -- not in the Available Frameworks list and not re-exported, forcing the submodule import the docs explicitly say to avoid. Even the Fri3d 2026 board's own init code (board/fri3d_2026.py) has to reach for import mpos.lights as LightsManager as a result.

Adds it to the same "from . import X" + all pattern already used for ui/net/audio/etc., matching the plain-module submodule-exposure style those already use (lights.py exposes module-level functions, not a class, so this mirrors that rather than the class-based singleton pattern used by AudioManager/SensorManager/etc.).

Every other framework follows the documented "from mpos import X" import
convention (architecture/frameworks/), enforced via re-exports in
mpos/__init__.py. mpos.lights (LightsManager) was the one exception --
not in the Available Frameworks list and not re-exported, forcing the
submodule import the docs explicitly say to avoid. Even the Fri3d 2026
board's own init code (board/fri3d_2026.py) has to reach for
`import mpos.lights as LightsManager` as a result.

Adds it to the same "from . import X" + __all__ pattern already used for
ui/net/audio/etc., matching the plain-module submodule-exposure style
those already use (lights.py exposes module-level functions, not a class,
so this mirrors that rather than the class-based singleton pattern used
by AudioManager/SensorManager/etc.).
@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c214151b-ef5b-4b22-a45c-5cb836245f9a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch re-export-lights-manager

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request imports and exposes the lights submodule in the mpos package init.py file. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@tjorim tjorim closed this Jul 12, 2026
@tjorim tjorim deleted the re-export-lights-manager branch July 12, 2026 10:37
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.

1 participant