Skip to content

Conversation

@pull
Copy link

@pull pull bot commented May 4, 2020

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 : )

JeffLIrion and others added 5 commits April 11, 2020 16:09
* 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>
@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels May 4, 2020
JeffLIrion added 23 commits May 5, 2020 21:34
* 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
ollo69 and others added 30 commits April 14, 2022 06:00
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>
* Fix CMD_SCREEN_ON constant in accordance with #323

* Format constants.py with black

* Update constant in unittest
* Fix CI

* Fix CI (attempt 2)
* 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
* 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

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.