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
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
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
41d2ac3943
Cleanup MediaClass and MediaType in tests ( #78817 )
...
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +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
ktnrg45
a445ebdf3c
Fix undesired power toggling ( #37427 )
2020-07-03 11:34:11 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
9a4a83cb91
Fix py38 tests ( #34658 )
2020-04-24 15:09:45 -07:00
Franck Nijhof
906385172a
String formatting improvements for tests ( #33663 )
2020-04-05 00:26:08 +02: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