Skip to content

[mqtt] docs include session_present and reason parameters in connection callbacks#5761

Merged
bdraco merged 7 commits intoesphome:nextfrom
Rapsssito:patch-6
Jan 8, 2026
Merged

[mqtt] docs include session_present and reason parameters in connection callbacks#5761
bdraco merged 7 commits intoesphome:nextfrom
Rapsssito:patch-6

Conversation

@Rapsssito
Copy link
Contributor

Description:

As in title.

Pull request in esphome with YAML changes (if applicable):

Checklist:

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the MQTT component documentation to reflect new parameters available in connection callbacks. The changes split the previously combined on_connect / on_disconnect trigger documentation into separate sections and document the new session_present parameter for on_connect and reason parameter for on_disconnect triggers.

Key changes:

  • Separated combined trigger documentation into individual sections for clarity
  • Added documentation for session_present parameter in on_connect trigger
  • Added documentation for reason parameter in on_disconnect trigger

@netlify
Copy link

netlify bot commented Dec 10, 2025

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 654c431
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/6960261519af9a00081aee62
😎 Deploy Preview https://deploy-preview-5761--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.

Rapsssito and others added 3 commits December 10, 2025 22:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Rapsssito Rapsssito changed the title feat(MQTT): include session_present and reason parameters in connection callbacks [mqtt] docs include session_present and reason parameters in connection callbacks Dec 27, 2025
@bdraco bdraco merged commit 8feedb5 into esphome:next Jan 8, 2026
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants