Commit bb6daff
Filter volume trigger updates during fading states
When a sound player is in a FadeIn or FadeOut state, the volume is
constantly changing through scheduled ramp commands. Incoming volume
trigger events from the Sonos device during this time may report stale
values that don't match the appliance's internal state.
This change filters volume trigger updates when the appliance is in a
fading state (has is_fading=True), preventing the stale volume values
from updating the appliance state.
Note: This only filters incoming volume TRIGGERS (events from device).
Outgoing volume ramp COMMANDS (scheduled during fade) continue to be
sent normally via Command.make_msgs_from() which checks is_fading=True.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f491172 commit bb6daff
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
0 commit comments