Skip to content

Conversation

@juame
Copy link

@juame juame commented Nov 11, 2025

Proposed change

Documents the addition of Ws as a unit for energy.

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 supported units for ENERGY and ENERGY_STORAGE device classes to include watt-second (Ws) for both number and sensor entity types.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 11, 2025

📝 Walkthrough

Walkthrough

Documentation updates to device class unit lists for NumberDeviceClass and SensorDeviceClass to include Ws (watt-second) as a valid unit for ENERGY and ENERGY_STORAGE device classes.

Changes

Cohort / File(s) Summary
Device class unit documentation updates
docs/core/entity/number.md, docs/core/entity/sensor.md
Added Ws (watt-second) to valid units for ENERGY and ENERGY_STORAGE device classes in documentation reference tables

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The pull request description follows the template structure with a clear proposed change and appropriate type of change selected, but lacks evidence of required verification steps. The author should confirm whether they have read the documentation guidelines and verified the changes render correctly, as indicated by the unchecked checklist items. Please mark these verification checkboxes as completed or provide confirmation.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding watt-second as an energy unit, which is directly reflected in the documentation updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

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