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
Change keys for Samsung TV next and prev track command #28213
Change keys for Samsung TV next and prev track command #28213
Conversation
@tulindo Sorry, but I don't get it. What is working with the current solution? And what is not working with the proposed one? |
@escoand while I watch a TV program on a channel and I want to watch the next channel the Key_ff command doesn't switch channel on TV while key_chup does. |
How is the button defined in HA? I would say neither A bit more appropriate is |
That's exactly my thought... Although it's not the perfect solution it's probably close to the expectation of an average television user. |
LGTM. Would you like to take ownership too? |
Gaining ownership for 2 silly lines of code? I don't think I deserve it :) at least for now. |
Deserve? Do I? I was just looking for somebody also willing to bring this integration further. |
Just to understand the PR approval and merge workflow ... Since you"re the codeowner are you able to merge it in the dev branch ore you've to wait for someone else (@balloob I suppose)? |
As I understand it I'm now someone who's interested in and willing to develop this integration. Apparently I'll get notified if something happens at it, not more and not less. |
@escoand this PR is still there waiting to be merged. Sure it's not up to you? |
Yes, completely sure. |
A backend repo member should review and can also merge after the change is approved. Code owners are encouraged to review and approve (or disapprove) too. Some code owners are also members and can merge but these roles are not always overlapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old and new keys are both not 100% matching, but the new ones a bit more.
@MartinHjelmare and @escoand any chance to get this simple PR merged? |
Please update the breaking change paragraph with a brief description of what has changed and what the user needs to do to cope with the change. |
Basically it was written in the description part. I made little modifications. Are they OK? |
Thanks! I updated the language a bit. |
Breaking Change:
The behaviour for next and previous track commands for samsung TVs were changed.
Before the change the samsung tv component reacted to the two above commands sending the KEY_FF and KEY_REWIND commands. While watching TV programs those two commands do nothing.
After the change the entity sends the KEY_CHUP and KEY_CHDOWN commands instead, thus allowing the user to change channel using the media player standard lovelace interface.
The user doesn't need to change anything in the configuration.
Description:
The best solution would be to send the right command based on the status of the TV (just like in the LG webos component) but unluckily looks like there is no way to detect what the TV currently showing.
Since there is no next/prev command in the media player but only next/prev track one has to deal with this.
Related issue (if applicable): fixes #
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.If the code does not interact with devices: