Skip to content

[dps310] Document DPS368 as fully supported drop-in replacement#6209

Merged
kbx81 merged 2 commits intoesphome:currentfrom
bharvey88:dps368-docs-update
Mar 4, 2026
Merged

[dps310] Document DPS368 as fully supported drop-in replacement#6209
kbx81 merged 2 commits intoesphome:currentfrom
bharvey88:dps368-docs-update

Conversation

@bharvey88
Copy link
Contributor

Description

The Infineon DPS310 barometric pressure sensor is discontinued ("Not for New Design"). The DPS368 is its drop-in successor with identical register maps, I²C addresses (0x77/0x76), and calibration procedures. The existing dps310 ESPHome component works with the DPS368 without any configuration changes, but the documentation doesn't mention this.

This PR updates the DPS310 docs page to:

  • Include DPS368 in the title and description
  • Add a note explaining DPS368 is fully supported
  • Mention the DPS310 is discontinued and Infineon recommends the DPS368

Checklist

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /src/content/docs/components/index.mdx when creating new documents for new components or cookbook.

@esphome esphome bot added the current label Mar 4, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 4, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 79bf6e8b-a7d5-476c-969f-66d0a9313331

📥 Commits

Reviewing files that changed from the base of the PR and between 316a8f5 and 06171fe.

📒 Files selected for processing (1)
  • src/content/docs/components/sensor/dps310.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/content/docs/components/sensor/dps310.mdx

Walkthrough

Documentation updated to reference both Infineon DPS310 and DPS368: front-matter title/description and introductory text now mention DPS368, a note documents DPS368 as a drop-in replacement for DPS310, and the sensor listing label was changed to "DPS310/DPS368".

Changes

Cohort / File(s) Summary
Sensor docs
src/content/docs/components/sensor/dps310.mdx
Updated front-matter title and description to reference DPS310/DPS368; expanded intro to mention DPS368 and ESPHome I²C usage; added a note that DPS368 is a drop-in replacement (identical registers, I²C addresses, calibration) and recommends DPS368 for new projects.
Index listing
src/content/docs/components/index.mdx
Updated sensor listing label from "DPS310" to "DPS310/DPS368" (display text only).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • jesserockz
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: documenting the DPS368 as a fully supported drop-in replacement for the DPS310.
Description check ✅ Passed The description provides relevant context about the DPS368 being a drop-in successor and explains the documentation updates made, directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 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.

Copy link
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 `@src/content/docs/components/sensor/dps310.mdx`:
- Around line 16-19: Replace the bolded note block starting with "**Note:** The
Infineon DPS368 is a drop-in replacement for the discontinued DPS310..." with a
GitHub-Flavored Markdown alert using the note alert syntax (> [!NOTE]) so the
block becomes a proper MDX alert; locate the exact text string "**Note:** The
Infineon DPS368..." in the sensor/dps310 documentation and convert it to the
alert form (> [!NOTE]) preserving the existing content about DPS368/DPS310
compatibility and recommendation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7071f302-67ce-4c7e-9b9a-cb477d1a57a2

📥 Commits

Reviewing files that changed from the base of the PR and between 69d315e and 3619579.

📒 Files selected for processing (1)
  • src/content/docs/components/sensor/dps310.mdx

@netlify
Copy link

netlify bot commented Mar 4, 2026

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 06171fe
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/69a88084c9d2700008b122e9
😎 Deploy Preview https://deploy-preview-6209--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The Infineon DPS368 is a drop-in successor to the discontinued DPS310
with identical register maps, I2C addresses, and calibration. Update
the docs to clearly state DPS368 compatibility.
@bharvey88 bharvey88 force-pushed the dps368-docs-update branch from 3619579 to 316a8f5 Compare March 4, 2026 18:25
Updated note formatting for DPS368 sensor replacement information.
Copy link
Member

@kbx81 kbx81 left a comment

Choose a reason for hiding this comment

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

Thanks! 📖

@kbx81 kbx81 merged commit d9dedb0 into esphome:current Mar 4, 2026
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants