Skip to content

Add microampere (µA) to CURRENT sensor class#3022

Closed
Phunkafizer wants to merge 1 commit into
home-assistant:masterfrom
Phunkafizer:patch-6
Closed

Add microampere (µA) to CURRENT sensor class#3022
Phunkafizer wants to merge 1 commit into
home-assistant:masterfrom
Phunkafizer:patch-6

Conversation

@Phunkafizer
Copy link
Copy Markdown
Contributor

@Phunkafizer Phunkafizer commented Mar 31, 2026

Proposed change

Type of change

  • Document existing features within Home Assistant
  • Document new or changing features for which there is an existing pull request elsewhere
  • Spelling or grammatical corrections, or rewording for improved clarity
  • Changes to the backend of this documentation
  • Remove stale or deprecated documentation

Checklist

  • I have read and followed the documentation guidelines.
  • I have verified that my changes render correctly in the documentation.

Additional information

Summary by CodeRabbit

  • Documentation
    • Updated current sensor documentation to include support for additional measurement units. The current sensor device class now includes microamps (µA) as a recognized unit, complementing the previously supported amperes (A) and milliamperes (mA) options. This change provides enhanced flexibility for precise current measurements across various device configurations and use cases in different applications.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 31, 2026

📝 Walkthrough

Walkthrough

Documentation update to the SensorDeviceClass.CURRENT table, extending the supported units list from A, mA to A, mA, µA to include microamperes as a valid unit option.

Changes

Cohort / File(s) Summary
Documentation Update
docs/core/entity/sensor.md
Extended supported units for SensorDeviceClass.CURRENT to include microamperes (µA) alongside amperes (A) and milliamperes (mA).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and clearly summarizes the main change: adding microampere (µA) support to the CURRENT sensor class documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description follows the required template structure with all key sections present, including proposed change context, type of change selection, completed checklist items, and a link to the related Home Assistant core pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

Copy link
Copy Markdown
Contributor

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/core/entity/sensor.md`:
- Line 45: Revert the unsupported microampere unit addition for the CURRENT
device class: update the SensorDeviceClass.CURRENT documentation entry to list
only "A, mA" (remove "µA") so it matches Home Assistant's supported units and
validation; locate the CURRENT entry in docs/core/entity/sensor.md (the table
row for SensorDeviceClass.CURRENT) and remove the "µA" token from the units
column.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f661ac28-efbb-427e-992b-cddb3f849a1a

📥 Commits

Reviewing files that changed from the base of the PR and between 0f4bc0e and 4d8208e.

📒 Files selected for processing (1)
  • docs/core/entity/sensor.md

Comment thread docs/core/entity/sensor.md
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

@home-assistant home-assistant Bot marked this pull request as draft April 1, 2026 10:24
@home-assistant
Copy link
Copy Markdown

home-assistant Bot commented Apr 1, 2026

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@Phunkafizer Phunkafizer closed this Apr 1, 2026
@Phunkafizer
Copy link
Copy Markdown
Contributor Author

New PR containing both changes:

#3025

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