forked from JeffLIrion/python-androidtv
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from JeffLIrion:master #1
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
Open
pull
wants to merge
156
commits into
JDiaz11:master
Choose a base branch
from
JeffLIrion:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Implement ADBPython.screencap() and ADBServer.screencap() * Add BaseTV.screencap() method * Remove debugging print statement * Fix screencap * Python2 compatibility
* Change 'self.available' -> 'self._available' * Make 'close()' set 'self._available' to False * Add '_was_available' attribute * Simplify 'available' property * Remove inapplicable test
* Fix Amazon Video State Fire 4K * Fix Amazon Video State Fire 4K * Fix test (?) Co-authored-by: Jeff Irion <JeffLIrion@users.noreply.github.com>
* Convert properties that do I/O into methods * Update androidtv.py * Documentation fixes
* Don't do I/O in constructors * Linting fixes
…#166) * Add code for getting events and converting them to sendevent commands * Fix typo
* Swap standby <-> idle in basetv.py * Swap standby <-> idle in androidtv.py * More idle <-> standby in test_androidtv.py * Swap standby <-> idle in firetv.py
* Revert "Pin adb-shell>=0.1.3,<=0.1.5 (#174)" This reverts commit bb5e73f. * Revert "Bump the version to 0.0.44 (#175)" This reverts commit 094493b. * Merging sync and async packages * Makefile changes * Working on Android TV * self.adb_shell -> self._adb.shell * Implement AndroidTVSync and AndroidTVAsync classes * Working on Fire TV; add __init__.py files * Finished first draft of Fire TV * Linting fixes * Working on getting tests to pass * Fix tests * Make '_get_stream_music' call '_parse_stream_music' * Add tests for adb_manager_async * Add tests for AndroidTVAsync and FireTVAsync * Rename tests * Rename test_homeassistant.py -> test_homeassistant_sync.py * 100% coverage * Update .travis.yml commands * Don't upload coverage for Python 3.6 * Bump adb-shell requirement to >=0.1.6 and remove aio-adb-shell * Add setup_async.py and test_setup_async.py * Fix linting check for Python 2 * Fix linting check for Python 2 (part 2) * Update README * Update adb_manager_sync.py * Update adb_manager_async.py * Update androidtv_async.py * Update androidtv_sync.py * Add 'lazy' parameter to 'update' * Add 'lazy' parameter to 'update' * Add 'lazy' parameter to 'update' * Add 'lazy' parameter to 'update' * Cleanup ADB constants * Bump adb-shell requirement to 0.1.7 * Edit the 'release' target in the Makefile * Fail a test if a coroutine is not awaited * Use async_patch * Fix naming throughout the code * Regenerate docs * Remove __version__ from setup_async.py * 'ADB_DEVICE_FAKE' -> 'ADB_DEVICE_TCP_ASYNC_FAKE' * Add androidtv.adb_manager subpackage * Bump the version back up to 0.0.44 * Documentation * Documentation * Update constants.py * Documentation * Define fake ClientAsync and DeviceAsync classes in adb_manager_async.py * Fix patching for ADB server tests * Add another check for 'learn_sendevent'
* Store the ADB key so it doesn't need to be re-opened * Add remainder of comment * 'Sync' -> 'Async' * 'loadadbkey' -> 'load_adbkey' * 'sync' -> 'async' * 'sync' -> 'async' * 'sync' -> 'async' * Add tests to make sure the key is only loaded once
* Use 'run_in_executor' to wrap sync ADB server calls * Use better names and comments
Parsing of current app is broken incase google assitant gets triggered and closed again. Suddenly we have Windows #1 as `mOwnerUid=10050 showForAllUsers=false package=com.google.android.inputmethod.latin appop=NONE` this is not correct. In this pull request based on the link issue, I've moved the command to find the windows that has the inputfocus instead See: home-assistant/core#69723 Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com> Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com>
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com> Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com>
* Retry power command on error * Only retry when output is not none * Add test for power retrying * Add power retry to sync version * Reformat
* Update constants.py added Emby and Magenta TV (from deutsche Telekom) * Update constants.py fixed missing semicolon * Update constants.py fixed alphabetical order...
* also detect focused window by mInputMethodInputTarget * Fix constant tests
* add support for TVNOW (formerly RTL Plus) * fix linting errors * fix wrong constant * fix tests * change naming to RTL Plus
* Switch usage of asyncio.wait_for to async_timeout `asyncio.wait_for` creates another tasks which leads to some race conditions in cancelation and a performance hit cpython 3.12 will change the underlying implementation of `asyncio.wait_for` to use `asyncio.wait` but that is still a long way off for many people: python/cpython#98518 * adjust ci
* More useful Makefile * Support async code for Python 3.1* * Add release target to Makefile * Run flake8 and pylint from venv/ in pre-commit.sh * Update python-package.yml * Add adb-shell[async] to venv_requirements.txt
* add support for androidtv 12 & 13 * reformated code by black formater * reformatted code by black again * fixed missing CMD_CURRENT_APP_MEDIA_SESSION_STATE12 * tried to fix the tests errors * fix missing CMD_VOLUME_SET_COMMAND11 * fixed errors * Stmts Miss * fix
* Fix .readthedocs.yml * More .readthedocs.yml changes * Checkout Makefile from master * Update docs/requirements.txt * Add sphinx-rtd-theme to docs/requirements.txt * Formatting
* Add Python 3.11 and 3.12 to CI * black * Add setuptools to venv_requirements.txt
* Added -A option to ps to list all processes. Fixes [#102565](home-assistant/core#102565) and [https://github.com/JeffLIrion/python-androidtv/issues/292](https://github.com/JeffLIrion/python-androidtv/issues/292) * Revert "Added -A option to ps to list all processes. Fixes [#102565](home-assistant/core#102565) and [https://github.com/JeffLIrion/python-androidtv/issues/292](https://github.com/JeffLIrion/python-androidtv/issues/292)" This reverts commit 86a27ae. * Merged Android/Fire TV command for running process
* Pylint fixes * Revert "Pylint fixes" This reverts commit a3a24bf. * Update .pylintrc * Add invalid-name to pylint disable list
* Add support for Askey STI6130 * Linting androidtv/basetv/basetv.py Co-authored-by: Jeff Irion <JeffLIrion@users.noreply.github.com> update documentation for product_id more lint issues. * More linting
Only tested on the Google TV Streamer for now, so the HDMI input stuff may need further tweaking once this actually rolls out to things with HDMI inputs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )