Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only retain state and configuration, not events. #249

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

pkulak
Copy link
Contributor

@pkulak pkulak commented Oct 22, 2022

If you retain events (like someone appearing at a camera), it makes it hard to design automations that won't trigger on every MQTT reconnection. This PR keeps all the state and Home Assistant configuration as "retain", but moves the /matches/{topic} and /cameras/{camera} to no longer "retain".

@jakowenko
Copy link
Owner

Looks good to me, thank you again for the contribution!

@jakowenko
Copy link
Owner

Would you classify this as a feature or a fix? I'm trying to figure out what the best commit type to use for the semantic release.

@pkulak
Copy link
Contributor Author

pkulak commented Oct 27, 2022

Hmm… probably a fix.

@jakowenko jakowenko merged commit d5de0ee into jakowenko:beta Oct 27, 2022
jakowenko added a commit that referenced this pull request Oct 27, 2022
## [1.13.1-beta.1](v1.13.0...v1.13.1-beta.1) (2022-10-27)

### Bug Fixes

* **mqtt:** only retain state and configuration, not events. ([#249](#249)) ([d5de0ee](d5de0ee))
@jakowenko
Copy link
Owner

🎉 This PR is included in version 1.13.1-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

jakowenko added a commit that referenced this pull request Oct 27, 2022
## [1.13.1](v1.13.0...v1.13.1) (2022-10-27)

### Bug Fixes

* **mqtt:** only retain state and configuration, not events. ([#249](#249)) ([d5de0ee](d5de0ee))
@jakowenko
Copy link
Owner

🎉 This PR is included in version 1.13.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants