-
-
Notifications
You must be signed in to change notification settings - Fork 36.4k
Enable native support + ADB authentication for Fire TV #17767
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
Enable native support + ADB authentication for Fire TV #17767
Conversation
|
I believe this needs a "breaking-change" label, since the user's configuration will need to be updated. |
rytilahti
left a comment
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.
Thanks for the PR, this is a very welcome effort! I did a brief testing and the basics (changing apps, playing & pausing) seemed to be working at first, but suddenly it stopped updating the play/pause state. Could be that me trying to connect with another adb instance to the same device got it confused (stays in 'playing' even when being paused, in both netflix and amazon videos).
|
So I guess this PR is just waiting for packages to be published on pypi. Aside from that, are there any other changes that need to be made? |
houndci-bot
left a comment
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.
Some files could not be reviewed due to errors:
Traceback (most recent call last):
Traceback (most recent call last):
File "/home/linters/.local/bin/flake8", line 7, in
from flake8.main.cli import main
ModuleNotFoundError: No module named 'flake8'
houndci-bot
left a comment
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.
Some files could not be reviewed due to errors:
Traceback (most recent call last):
Traceback (most recent call last):
File "/home/linters/.local/bin/flake8", line 7, in
from flake8.main.cli import main
ModuleNotFoundError: No module named 'flake8'
|
OK, so the When I ran The errors are:
|
|
@rytilahti, please let me know what you'd like me to change so that I can get this PR approved. |
|
Looking at the requirements.txt diff, there are lots of unwanted changes there, so that's why it is complaining. |
|
If |
|
I switched from using a boolean to using |
|
Is it ready to be merged once |
|
@MartinHjelmare is this ready to be merged once |
|
I think so. 👍 |
|
|
|
I've restarted the failed job. |
|
The build passed! Can we merge this PR? |
|
Thanks @MartinHjelmare! And thanks to @rytilahti for the reviews and @happyleavesaoc for approving my PRs for |
|
Please open an issue if you suspect a bug. If you need help please use our help channels: Merged PRs should not be used for support or bug reports. Thanks! |

Description:
Related issue (if applicable): fixes #13482
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#7062
Forum thread: https://community.home-assistant.io/t/native-support-for-fire-tv/64448
Example entry for
configuration.yaml(if applicable):If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTSvariable ([example][ex-requir]).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.Breaking Changes (short version)
The
hostandportconfiguration variables now refer to the Fire TV device itself, whereas before they referred to the firetv server running in a Python 2 environment.Breaking Changes (longer version)
Previously, the Fire TV component required the user to run a firetv server in a Python 2 environment, and Home Assistant would poll that server for information about the Fire TV device(s). In this setup, the
hostandportconfiguration variables referred to the firetv server.Recent updates to the firetv and adb libraries have enabled the firetv package to run in a Python 3 environment. In this update, Fire TV devices are monitored and controlled directly by Home Assistant itself -- no third party Python 2 firetv server required! Accordingly, the
hostandportconfiguration variables now refer to the Fire TV device itself.Furthermore, this update provides support for ADB authentication, which nearly all Fire TV devices now require. To enable ADB authentication, the user must follow the instructions in home-assistant/home-assistant.io#7062 and add the
adbkeyconfiguration variable.