epenet
5608301178
Add missing return type in test __init__ methods ( #123932 )
...
* Add missing return type in test __init__ methods
* Adjust
2024-08-14 16:48:52 +02:00
epenet
86f7718c1f
Adjust type hints for unnecessary returns in tests ( #121657 )
2024-07-10 09:30:50 +02:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
ollo69
2cfc11d4b9
Limit AndroidTV screencap calls ( #96485 )
2023-07-24 19:58:11 +02:00
ollo69
c95e2c074c
Add missing type hints for AndroidTV ( #96554 )
...
* Add missing type hints for AndroidTV
* Suggested change
2023-07-15 02:18:34 +02:00
ollo69
772df02cce
Catch AndroidTV exception on setup ( #86819 )
...
fixes undefined
2023-01-30 22:42:32 +01:00
ollo69
ea456893f9
Review AndroidTV tests for media player entity ( #71168 )
2022-05-02 15:18:38 -07:00
ollo69
341d039252
Improve androidtv mac address handling and test coverage ( #65749 )
...
* Better mac addr handling and improve test coverage
* Apply suggested changes
* Apply more suggested changes
2022-02-06 14:15:50 -08:00
Jeff Irion
fe05d6680c
Bump androidtv to 0.0.63 (fix MAC issues) ( #65615 )
2022-02-04 20:13:08 +01:00
ollo69
5a41251d45
Add config_flow to AndroidTV integration ( #54444 )
...
Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com>
2021-12-20 13:08:35 -06:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Diederik van den Burger
60234ecf40
Add hdmi input attribute to AndroidTV ( #42571 )
...
* bumps androidtv to 0.0.53
* add hdmi_input attribute to androidtv
* update tests for hdmi_input attribute
* chore: update docstrings
2020-11-05 14:36:46 +01:00
Jeff Irion
ad0d3b4848
Improve handling of exceptions in Android TV ( #39229 )
...
* Close the ADB connection when there is an exception
* Add a test
* Split a comment onto two lines
* Fix test ('async_update' -> 'async_update_entity')
* 'close' -> 'Close'
2020-08-29 21:56:25 -05:00
Jeff Irion
071b8ed8a5
Fix Android TV ADB authorization ( #38471 )
2020-08-02 09:08:12 -05:00
Jeff Irion
10893f6246
Convert Android TV integration to async ( #37510 )
...
* Convert Android TV integration to async
* pylint
* Remove unused test code
* Require async versions of androidtv and adb-shell
* Cleanup
* Remove commented out code
* Use constants SHELL_RESPONSE_OFF and SHELL_RESPONSE_STANDBY
2020-07-05 14:13:08 -05:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Jeff Irion
8a5bce81c8
Bump adb-shell to 0.1.0 and androidtv to 0.0.36 ( #29938 )
...
* Bump adb-shell to 0.1.0 and androidtv to 0.0.36
* Add test for setting up two devices
* Add test_setup_same_device_twice
* Fix test_setup_two_devices
* Fix coverage
* Coverage
* Fix flaky 'test_setup_two_devices'
* Another stab at coverage
* Rename 'address' back to 'host'
2019-12-15 11:31:59 +01:00
Raman Gupta
003658a3f0
Update androidtv version to improve source selection support ( #29579 )
...
* Change androidtv module versions and add support for select_source for all device types
* Update and add tests
* Update requirements_test_all.txt
* Update requirements_all.txt
* Consolidate tests
* Fix typo
* Remove 'self._device'
2019-12-14 16:54:41 +01:00
Jeff Irion
c7f684d3f4
Bump androidtv to 0.0.34 ( #28816 )
...
* Bump androidtv to 0.0.33; add pure-python-adb requirement
* python -m script.gen_requirements_all
* Avoid redundant 'available' check
* Bump androidtv to 0.0.34
* Update docstrings for the decorator functions
2019-11-17 12:47:14 +01:00
Jeff Irion
a71d852f16
Use friendly app names for Fire TV sources ( #28417 )
...
* Use friendly app names for Fire TV sources
* Remove debugging statement
* Tests pass
* Use 'blocking=True' to patch service calls
* Remove parentheses
2019-11-07 15:04:59 -07:00
Jeff Irion
28cef89e03
Generate ADB key for Android TV integration ( #27344 )
...
* Generate ADB key for Android TV integration
* Remove 'do_nothing' function
* Remove 'return True'
* Re-add 2 'return True' lines
2019-10-17 15:33:20 +02:00
Jeff Irion
45c548ae47
Bump androidtv to 0.0.28 ( #26906 )
...
* Bump androidtv to 0.0.28
* Address reviewer comments
* Remove adb-shell from requirements_test_all.txt
* Use a one-liner to avoid a coverage failure
2019-09-27 07:53:26 +02:00
Jeff Irion
85473d2c98
Bump androidtv to 0.0.26 and update tests ( #26340 )
...
* Move the patchers to a separate file
* Got a pytest test working (mostly)
* Checkpoint
* Switch to pytest for all tests
* Bump androidtv to 0.0.26 and update tests
* More robust patching
* Remove unused constants
* Combine two lines
* Add 2 additional checks
* Check that state objects are not None; add more description to tests
* Use f strings
2019-09-02 22:08:01 +02:00