Skip to content

Conversation

@bramkragten
Copy link
Member

Proposed change

Platform triggers only support config in options, so we have to migrate the old style trigger configs to the new style when used as a platform trigger.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@github-actions github-actions bot added the Design Related to Home Assistant design gallery label Nov 26, 2025
Comment on lines 79 to 81
if (!newValue.options) {
newValue.options = {};
}
Copy link
Member

Choose a reason for hiding this comment

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

I think this if is never true, it will be always created in the prev if (newValue === undefined)

Copy link
Member Author

Choose a reason for hiding this comment

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

it is for typescript, it actually is always true

@home-assistant home-assistant bot marked this pull request as draft November 26, 2025 14:44
@home-assistant
Copy link

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.

@bramkragten bramkragten marked this pull request as ready for review November 26, 2025 14:48
@home-assistant home-assistant bot requested a review from wendevlin November 26, 2025 14:48
@wendevlin wendevlin enabled auto-merge (squash) November 26, 2025 14:56
@wendevlin wendevlin merged commit 5c3ccbf into dev Nov 26, 2025
11 checks passed
@wendevlin wendevlin deleted the remove-and-migrate-mqtt-trigger-config branch November 26, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Design Related to Home Assistant design gallery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants