Skip to content

Conversation

@CoMPaTech
Copy link
Owner

@CoMPaTech CoMPaTech commented Aug 3, 2025

Summary by CodeRabbit

  • New Features
    • Added support for LiteBeam 5AC options, including new wireless and IEEE mode options.
  • Changes
    • Improved handling of device attributes to better support LiteBeam 5AC devices.
  • Chores
    • Updated project version to 0.2.4.
    • Added a new changelog entry for version 0.2.4.

@coderabbitai
Copy link

coderabbitai bot commented Aug 3, 2025

Walkthrough

This change updates the project version to 0.2.4, adds a changelog entry describing new LiteBeam 5AC options, and extends enums and type annotations in the data model to support LiteBeam 5AC devices. Specifically, new enum members are introduced and a dataclass attribute is made nullable.

Changes

Cohort / File(s) Change Summary
Changelog Update
CHANGELOG.md
Added a new entry for version 0.2.4 (2025-08-03), documenting the addition of LiteBeam 5AC options.
Data Model Extensions
airos/data.py
Extended IeeeMode and WirelessMode enums, updated Host.height type annotation to allow None.
Version Bump
pyproject.toml
Updated project version from 0.2.3 to 0.2.4.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Host (Dataclass)
    participant IeeeMode (Enum)
    participant WirelessMode (Enum)

    User->>IeeeMode: Access enum members (_11ACVHT80, _11ACVHT40, _11ACVHT20)
    User->>WirelessMode: Access enum members (PTP_ACCESSPOINT, PTMP_ACCESSPOINT, PTP_STATION)
    User->>Host: Create Host, set height (int or None)
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • Bump json to mashumaro #23: Both PRs modify enums and dataclasses in the data model to support new wireless device types, indicating a direct connection in evolving AirOS device support.

Poem

In the meadow of code, a new version hops,
With LiteBeam support, the enum list pops.
Nullable heights for devices that soar,
Changelog updated, features galore!
🐇✨ Version 0.2.4 opens the door.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1c7402f and 05a5ca1.

📒 Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch small

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov
Copy link

codecov bot commented Aug 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.14%. Comparing base (daed2ec) to head (05a5ca1).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
+ Coverage   93.12%   93.14%   +0.01%     
==========================================
  Files           8        8              
  Lines        1076     1079       +3     
==========================================
+ Hits         1002     1005       +3     
  Misses         74       74              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
airos/data.py (1)

38-41: Enum additions look good – keep an eye on the leading underscore

The extra IEEE modes (_11ACVHT40, _11ACVHT20) are consistent with the pre-existing _11ACVHT80, so no functional issue.
Just note that leading underscores may hide these members from some auto-generated docs or dir() listings.

CHANGELOG.md (1)

5-10: Changelog entry OK – minor categorisation nitpick

The LiteBeam 5AC options are new capabilities, so you could place them under an “Added” section instead of “Changed” for slightly clearer semantics. Totally optional.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between db7b54a and 1c7402f.

📒 Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • airos/data.py (2 hunks)
  • pyproject.toml (1 hunks)
🔇 Additional comments (3)
pyproject.toml (1)

7-7: No runtime __version__ constant detected – no further action needed
I ran a search across all .py files and did not find any hard-coded __version__ definitions. Since you’re not exposing a manual __version__ in your package, you can rely on tools like importlib.metadata (or pkg_resources) to read the bumped version from pyproject.toml at runtime.

airos/data.py (2)

47-49: New wireless mode constant added

PTMP_ACCESSPOINT covers the multi-point AP case and cleanly extends the enum. No concerns.


94-95: Optional height accepted, consider mirroring in Remote

Allowing None for Host.height matches field behaviour on LiteBeam 5AC devices.
Remote.height (Line 256) is still int; if the remote side can also report null, alignment would avoid future deserialization errors.

Would you verify a LiteBeam trace for the remote.height field? If it can be null, applying the diff below keeps the model symmetric:

-    height: int
+    height: int | None

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 3, 2025

@CoMPaTech CoMPaTech merged commit f15eb5e into main Aug 3, 2025
14 checks passed
@CoMPaTech CoMPaTech deleted the small branch August 3, 2025 07:21
@CoMPaTech
Copy link
Owner Author

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.

2 participants