-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Fix binary_sensor initial publish #5038
Conversation
Hey there @esphome/core, mind taking a look at this pull request as it has been labeled with an integration ( |
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Im gonna close this as I think the filters should not alter the data unexpectedly like this. #5091 should fix the problem you were having by publishing false as initial. Let me know if something else is still required though. |
Jesse, I wouldn't create a PR or make corrections if it wasn't required. #5091 does not fix the whole problem. Since the method |
The main issue I see here is that if you specifically have a filter that delays any state being reported until you need a true or false from startup, this code will break that by forcing a A I'll reopen, but not satisfied with the solution (yet) |
In lambda, yes, I can. But this is not an option, especially since the user interface cannot be configured out of the box to display |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
What does this implement/fix?
Fixes an error in the initial publication of the state of the binary sensor during the use of filters.
Related issue or feature (if applicable): fixes esphome/issues#2537
https://community.home-assistant.io/t/esphome-fails-to-update-sensor-state-in-ha-when-using-4-second-delay-filters-workaround/347541
Types of changes
Test Environment
Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: