Marc Mueller
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
Marc Mueller
837ee7c4fb
Import Generator from typing_extensions (4) ( #118992 )
2024-06-06 17:41:37 +02:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
epenet
24f83c5890
Use is in FlowResultType enum comparison in tests ( #114917 )
...
* Use is in FlowResultType enum comparison in tests
* Adjust auth
* Adjust systemmonitor
* Once more
* Add comment
2024-04-05 10:40:14 +02:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
J. Nick Koston
9a79320861
Mark executor jobs as background unless created from a tracked task ( #114450 )
...
* Mark executor jobs as background unless created from a tracked task
If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.
Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown
* import exec has the same issue
* Avoid tracking import executor jobs
There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs
* fix xiaomi_miio
* lots of fire time changed without background await
* revert changes moved to other PR
* more
* more
* more
* m
* m
* p
* fix fire and forget tests
* scrape
* sonos
* system
* more
* capture callback before block
* coverage
* more
* more races
* more races
* more
* missed some
* more fixes
* missed some more
* fix
* remove unneeded
* one more race
* two
2024-03-30 00:16:53 -04: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
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Ville Skyttä
3094991236
Upgrade ruff to 0.0.285 ( #98647 )
2023-08-19 08:17:17 -04:00
Erik Montnemery
6ea7011a07
Adjust ps4 tests which create devices ( #98205 )
2023-08-10 18:24:25 +02:00
epenet
42d90538e4
Use load_json_object in ps4 ( #88590 )
2023-02-22 13:55:44 +01:00
epenet
2cdc741900
Add type hints to integration tests (part 17) ( #88163 )
2023-02-15 11:14:04 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests ( #87763 )
2023-02-09 10:43:45 +01:00
epenet
3abf7ea18a
Add type hints to integration tests (m-p) ( #87705 )
2023-02-08 07:48:54 -08:00
epenet
59ca7780fa
Add typing to tests with single hass argument ( #87631 )
2023-02-07 15:01:16 +01:00
epenet
41d2ac3943
Cleanup MediaClass and MediaType in tests ( #78817 )
...
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
epenet
4eb46d45ca
Cleanup deprecated async_get_registry in tests ( #72059 )
2022-05-18 13:12:38 +02:00
Erik Montnemery
55a77b2ba2
Prevent 3rd party lib from opening sockets in ps4 tests ( #56330 )
2021-09-17 12:51:25 +02:00
Joakim Sørensen
85c1614204
Add currency to location data ( #53575 )
2021-07-27 21:05:16 -07:00
Joakim Sørensen
7ff14b47a8
Use whoami for location lookup ( #50934 )
2021-05-22 20:34:48 -07:00
Franck Nijhof
177317a345
Allow passing options in config flow entry creation ( #49912 )
2021-05-05 22:14:01 -07:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
Ville Skyttä
2fb3be50ab
Make DeviceRegistry.async_get_device connections arg optional ( #44897 )
...
* Make async_get_device connections Optional, default None
* Remove unnecessary async_get_device connections arg usages
Some of these were using an incorrect collection type, which didn't
cause issues mostly just due to luck.
2021-01-07 13:49:45 +01:00
Paulus Schoutsen
009663602a
Avoid Ps4 doing I/O during tests ( #44845 )
2021-01-05 21:12:14 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
ktnrg45
5b14c1da73
Bump pyps4-2ndscreen to 1.2.0 ( #44273 )
...
* Bump PS4 to 1.2.0
* Add additional media_player tests
* Fix tests
2020-12-18 08:46:59 +01:00
Christian Bilevits
ae20b3a678
Use common strings in ps4 config flow ( #41623 )
2020-10-11 16:57:21 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
ktnrg45
a445ebdf3c
Fix undesired power toggling ( #37427 )
2020-07-03 11:34:11 -07:00
Boris Kaplounovsky
2f6ffe7068
Fix json overwriting if you have >1 PS4 connected ( #35778 )
2020-06-02 17:55:55 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Martin Hjelmare
e4590539e1
Make ps4 config flow tests robust ( #34749 )
2020-04-27 11:36:24 +02:00
Paulus Schoutsen
9a4a83cb91
Fix py38 tests ( #34658 )
2020-04-24 15:09:45 -07:00
Franck Nijhof
d7e9959442
String formatting improvements for tests (2) ( #33666 )
2020-04-05 00:33:07 +02:00
Franck Nijhof
906385172a
String formatting improvements for tests ( #33663 )
2020-04-05 00:26:08 +02:00
ktnrg45
d3ac3e48a3
Fix ps4 errors if pin begins with a 0 ( #31198 )
...
* Fix errors if pin begins with a 0
* Test PIN leading with zero
* Edit tests
2020-01-27 10:32:14 -05:00
Bas Nijholt
21816eeed4
Sort imports according to PEP8 for components starting with "P" ( #29775 )
2019-12-09 14:29:39 +01:00
ktnrg45
512ef2fce4
Change ps4 state off to state standby ( #28261 )
...
* Change state off to state standby
* update docstring
2019-11-02 10:32:37 +01:00
Pascal Vizeli
435cbb7f7e
Azure pytest parallel ( #27864 )
...
* Azure pytest parallel
* Update azure-pipelines-ci.yml
* Remove test that does nothing
2019-10-18 20:51:53 -07:00
ktnrg45
1ecc883ef4
PS4 bump to renamed dependency ( #27144 )
...
* Change to renamed dependency pyps4-2ndscreen 0.9.0
* Rename / bump to ps4 dependency to 1.0.0
* update requirements
* Rename test req
* Fix import
* Bump 1.0.1
* Fix flaky test leaving files behind
2019-10-06 14:43:34 +02:00
Ville Skyttä
9b1315d8e5
Check and fix test suite leaving files behind ( #25981 )
...
* azure: run check_dirty at end of tests
* Fix ps4 media player tests to not write to files
* .gitignore coverage.xml and test-results.xml
2019-08-21 19:50:26 +03:00
Robert Svensson
a2589f56e1
Add system options to config entries ( #25926 )
...
* Add system options to config entries
* For feedback
* Follow most of balloobs comments
* Fix balloobs comments
* Improvements
* Fix second round of Balloobs comments
* Fix third round
* Add system options to mock config entry
* Fix integration tests
* Fix the last failing tests
* Fix disabled string
* Fix failing disabled_by tests
* New tests
* Config entry WS API tests
* Fix comments
2019-08-17 21:34:11 -07:00
ktnrg45
069c1863eb
PS4 Merge async_setup_platform into async_setup_entry ( #25689 )
...
* Merge async_setup_platform into async_setup_entry
* Pass async_setup_platform
* blank line
* add test setup platform
* white space
2019-08-04 22:01:40 -06:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
ktnrg45
2e300aec5a
Add PS4 tests for media player ( #25415 )
...
* Add tests for media_player
* remove ps4/media_player.py
* Add unsubscribe method to unload
* Add_to_hass instead of add_to_manager
* Use hass.states for states
* Fix assertions
* fix tests
* Add schedule update
* Remove entity assertions
2019-07-29 09:38:17 -04:00
ktnrg45
48540fc21e
Ps4 reformat media data ( #25172 )
...
* Reformat saved media data/ fix load + save helpers
* Add url constant
* Reformat saved media data
* Add tests for media data
* Refactor
* Revert deleted lines
* Set attrs after checking for lock
* Patch load games.
* remove unneeded imports
* fix tests
* Correct condition
* Handle errors with loading games
* Correct condition
* Fix select source
* add test
* Remove unneeded vars
* line break
* cleanup loading json
* remove test
* move check for dict
* Set games to {}
2019-07-20 07:36:45 +02:00
ktnrg45
99c6c60bec
PS4 Add tests for init ( #25161 )
...
* Add some tests for init
* Remove init
* Add config entry version
* Use const for version
* Remove var
2019-07-15 08:47:47 -07:00