Skip to content

atvscript: use Audio and Power for volume and power commands - #2923

Open
SeoFood wants to merge 1 commit into
postlund:masterfrom
SeoFood:seofood/atvscript-public-interfaces
Open

SeoFood wants to merge 1 commit into
postlund:masterfrom
SeoFood:seofood/atvscript-public-interfaces

Conversation

@SeoFood

@SeoFood SeoFood commented Oct 12, 2026

Copy link
Copy Markdown

Send volume_up and volume_down through Audio, and support turn_on and turn_off through Power. The volume commands currently call the deprecated remote-control methods, and power commands fall through as unsupported on the current branch.

Keep the existing JSON response format and remote buttons. Dispatch only these four no-argument commands so Audio/Power properties and methods that require arguments are not exposed accidentally.

Validation: all 24 script tests pass, including nine dispatch/output cases. The four affected commands fail their new tests before this change. Black, isort, flake8 and pydocstyle pass for the changed code.

Fixes #2782.

Additional validation: the full suite with the related pyatv patches applied passes (1,292 passed, 5 skipped). The formatting, lint, spelling and typing checks from chickn pass. Generated API-documentation verification produces the same pre-existing mismatch on the base revision.

This branch has not been deployed

No deployments
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.

atvscript volume_down/volume_up is using deprecated functions

1 participant