Skip to content

Fix one-zone telnet power refresh handling#385

Open
davidjirovec wants to merge 1 commit intool-iver:mainfrom
davidjirovec:fix/one-zone-telnet-power-refresh
Open

Fix one-zone telnet power refresh handling#385
davidjirovec wants to merge 1 commit intool-iver:mainfrom
davidjirovec:fix/one-zone-telnet-power-refresh

Conversation

@davidjirovec
Copy link
Copy Markdown

Summary

  • use PW consistently for one-zone telnet power refreshes during reconnect
  • accept PW events routed to the All zone for main-zone power/state callbacks
  • add regression coverage for one-zone PW handling and reconnect ordering

Problem

One-zone receivers can flap from off to on during telnet reconnect. The library already switched one-zone power control to PW, but telnet reconnect still queried ZM first and the main-zone power/state callbacks ignored PW events because they were routed to the All zone. That allowed stale power=ON state to survive long enough for an SI event to flip the media-player state back to on while the AVR was still in standby.

Testing

  • python3 -m compileall denonavr tests
  • python3 -m pytest -q -s

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant