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
tronikos
b52fab0f6d
Rename Android TV to Android Debug Bridge ( #90657 )
...
* Rename Android TV to Android debug bridge
* More renaming
2023-04-02 14:22:16 -04:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
07a1a0efa9
Add type hints to integration tests (part 1) ( #87777 )
2023-02-09 16:09:13 +01:00
epenet
2545694d41
Add type hints to integration tests (a) ( #87684 )
...
* Add type hints to accuweather tests
* Adjust a** components
* Adjust aiohttp_client
* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
ollo69
772df02cce
Catch AndroidTV exception on setup ( #86819 )
...
fixes undefined
2023-01-30 22:42:32 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
ollo69
5058272818
Use Object selector for AndroidTV detection rules option ( #84412 )
2022-12-27 15:08:23 +01:00
uvjustin
d989e4373d
Remove websocket_api send_big_result ( #75452 )
2022-07-19 21:08:11 -07:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
ollo69
ea456893f9
Review AndroidTV tests for media player entity ( #71168 )
2022-05-02 15:18:38 -07:00
ollo69
c8c27dba0f
Remove conditional logic in AndroidTV tests ( #70944 )
2022-04-27 17:17:56 -05:00
ollo69
21f9b19fad
Review AndroidTV tests ( #69048 )
2022-04-26 23:26:22 -07:00
ollo69
0d8736b82b
Remove ipaddress check in AndroidTV config flow ( #68630 )
2022-03-29 10:44:33 +02:00
ollo69
17ddbb4983
Restore AndroidTV entity name from migration ( #68756 )
2022-03-27 14:57:15 -10:00
Franck Nijhof
d645e80ccd
Clean up async_update_entity helper usage ( #68641 )
2022-03-25 15:22:58 -07:00
Robert Hillis
a11a5366be
Remove deprecated yaml config from androidtv ( #68339 )
2022-03-22 20:45:35 -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
Jeff Irion
1e9a0c0609
Fix the Android TV volume mute service ( #64403 )
...
* Fix the Android TV volume mute service
* Update homeassistant/components/androidtv/media_player.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* assert mute_volume.called
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-19 18:55:46 +02:00
Josh Soref
3f43df1348
spelling: components/androidtv ( #64267 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 15:28:28 +01:00
ollo69
a978661545
Address late review of Minor AndroidTV config flow ( #64088 )
...
* Minor changes for AndroidTV config flow
* Add mark.parametrize to media_player tests
2022-01-14 02:05:35 +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
ad13a9295e
Merge multiple context managers in tests ( #48146 )
2021-03-27 09:17:15 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Jeff Irion
cfc8e96b15
Handle overriding of default apps for Android TV ( #41893 )
...
* Handle overriding of default apps for Android TV
* Fix comment
2020-11-05 16:41:22 +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
68d75a879b
Fix Android TV 'async_get_media_image' ( #40672 )
2020-09-28 16:04:08 +02: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
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Jeff Irion
071b8ed8a5
Fix Android TV ADB authorization ( #38471 )
2020-08-02 09:08:12 -05:00
Jeff Irion
2c3618e2c7
Close androidtv ADB socket connection when Home Assistant stops ( #37973 )
...
* Close the ADB connection on HA stop
* Get the test to pass
* Remove unnecessary test code
* Register the callback sooner
* '_async_stop' -> 'async_close'
* 'async_close' method -> '_async_close' function
2020-07-20 02:48:08 +02: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
Jeff Irion
4d17b18761
Register 'androidtv.learn_sendevent' service ( #35707 )
2020-06-29 18:17:04 -07:00
Jeff Irion
823f27db5a
Fix usage of states 'idle' and 'standby' for Android TV ( #36509 )
2020-06-07 10:10:20 -05:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07: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
Kris Bennett
994e83811f
Add Android TV screen capture option and use library screencap ( #34074 )
2020-04-14 18:41:19 +02:00
Jeff Irion
31dc2ad284
Allow filtering of sources for Android TV ( #30994 )
2020-01-29 14:13:09 -06:00
Jeff Irion
cd72128a80
Implement 'volume_set' service for Android TV devices ( #31161 )
2020-01-26 10:39:19 +01:00
Jeff Irion
73af75cb41
Catch UnicodeDecodeError exceptions in 'androidtv.adb_command' service ( #30538 )
...
* Catch UnicodeDecodeError exceptions in 'androidtv.adb_command' service
* Replace "adb_command" with SERVICE_ADB_COMMAND
2020-01-07 13:30:34 +01:00
Jeff Irion
5ec5df77cc
Register 'androidtv.download' and 'androidtv.upload' services ( #30086 )
...
* Add tests
* Add FileSync test
* Fill in services.yaml for 'androidtv.adb_filesync' service
* Update example paths in services.yaml
* Bump androidtv to 0.0.37
* Bump androidtv to 0.0.37
* Bump androidtv to 0.0.37
* Import LockNotAcquiredException
* Import LockNotAcquiredException from androidtv.exceptions
* Rename 'host' to 'address'
* Add a logging statement when an ADB command is skipped
* Check hass.config.is_allowed_path(local_path)
* Add return
* Fix pylint
* Reduce duplicated code (AndroidTVDevice vs. FireTVDevice)
* Split 'adb_filesync' service into 'download' and 'upload' services
* Don't use '.get()' for required data; return if the services are already registered
* Replace "command" with ATTR_COMMAND
* Don't try to connect to a device if it is a duplicate
2020-01-06 23:10:13 +01: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
Bas Nijholt
96961b9bcc
Sort imports according to PEP8 for components starting with "A" ( #29761 )
2019-12-09 13:57:24 +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