Commit Graph

65 Commits (5446dd92a977615f3e83cdb9469c900f503a5824)

Author SHA1 Message Date
epenet 86f7718c1f
Adjust type hints for unnecessary returns in tests (#121657) 2024-07-10 09:30:50 +02:00
Marc Mueller 2f0dd6f704
Import Generator from collections.abc (2) (#120915) 2024-07-01 11:58:49 +02:00
Marc Mueller 274cd41d57
Fix Generator annotations in tests (1) (#119018) 2024-06-07 08:43:32 +02:00
ollo69 8610436948
Add remote entity to AndroidTV (#103496)
* Add remote entity to AndroidTV

* Add tests for remote entity

* Requested changes on tests
2024-06-04 17:02:30 +02:00
ollo69 7f934bafc2
Add diagnostics test to AndroidTV (#117129) 2024-05-28 10:56:32 +02:00
ollo69 5db8082f91
Review AndroidTV decorator exception management (#114133) 2024-05-06 18:00:12 -05:00
epenet 0b01326f9f
Use is in ConfigEntryState enum comparison in tests (A-M) (#114925) 2024-04-05 17:16:55 +02:00
Joost Lekkerkerker 9b41e3d124
Use is in enum comparison in config flow tests A-E (#114669) 2024-04-02 11:22:05 -10: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
Joost Lekkerkerker 6bb4e7d62c
Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller 38adfbf1a3
Add empty line after module docstring [tests a-e] (#112708) 2024-03-08 08:50:25 -05:00
ollo69 f0f3773858
Add base class AndroidTVEntity to AndroidTV (#105945) 2024-02-22 12:38:38 -10: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
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