Auto-inject elapsed.Event.Off when transitioning to fade_in state#9
Merged
majamassarini merged 3 commits intodevfrom Feb 21, 2026
Merged
Auto-inject elapsed.Event.Off when transitioning to fade_in state#9majamassarini merged 3 commits intodevfrom
majamassarini merged 3 commits intodevfrom
Conversation
5795dab to
7adac3a
Compare
Configure CI to run unit tests on PRs against main or dev branches. Uses Python 3.8 and runs unittest discover on home/tests directory. Add coverage reporting to GitHub Actions workflow Fix doctest in options.py for redis_port type Fix timezone compatibility for both pytz and ZoneInfo Fixes AttributeError: 'ZoneInfo' object has no attribute 'localize' Fix APScheduler timezone compatibility and disable osmer_fvg builder tests Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Explain why sending an event to a state machine can have no effect even when it appears it should work. Include example showing how presence.Event.Off can prevent sound player fade in transitions. Add explanation about why you cannot send multiple events at the same time when processing order matters. Include example showing the need for state-based triggers (state.entering.Trigger) instead of sending events simultaneously. Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Remove `self._is_on = True` from alarmed/off/state.py __init__. This line contradicted the IsOff mixin, which defines is_on as False. The bug caused: - KNX plugin to not send on/off commands during alarmed state toggles (both alarmed_on and alarmed_off incorrectly reported is_on=True) - Zone lights to stop toggling when alarmed - Lights to get stuck in forced_off after alarmed transitions The state now correctly inherits is_on=False from the IsOff mixin, allowing proper KNX command generation during toggle transitions. Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
36acac2 to
fd73d9f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.