Ian
aa8c4a6eb7
Add ability to play plex media as the non-primary user ( #122039 )
...
* Adds ability to play media as the non-primary user
* Add return type for set function
2024-09-08 15:42:26 +02:00
epenet
ef4caa951c
Use start_reauth helper method in integration tests (p-r) ( #124792 )
2024-08-28 16:20:47 +02:00
epenet
d961e20b15
Add missing hass type hint in component tests (p) ( #124227 )
2024-08-20 12:52:33 +02:00
epenet
3e967700fd
Add missing return type in test __init__ method (part 2) ( #123939 )
...
* Add missing return type in test __init__ method (part 2)
* Adjust
* One more
* One more
* More
2024-08-14 17:59:15 +02:00
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
Marc Mueller
a6068dcdf2
Update import locations in tests ( #122216 )
2024-07-20 11:16:04 +02:00
Marc Mueller
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
epenet
3e9d25f81d
Add missing argument type hints to component tests ( #119671 )
2024-06-14 09:26:46 +02:00
epenet
1440ad26c8
Fix dangerous-default-value warnings in plex tests ( #119603 )
2024-06-13 17:01:52 +02:00
epenet
a0c445764c
Ignore super-init-not-called pylint warnings in tests ( #119474 )
2024-06-12 17:54:38 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
epenet
fbaba3753b
Fix root-import pylint warning in components ( #119294 )
...
* Fix root-import pylint warning in components
* Adjust
* Adjust
2024-06-10 15:14:49 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 ( #113957 )
2024-06-08 17:59:08 +02:00
Marc Mueller
837ee7c4fb
Import Generator from typing_extensions (4) ( #118992 )
2024-06-06 17:41:37 +02:00
epenet
b81f0b600f
Move current_request_with_host fixture to decorator ( #118810 )
...
* Move current_request_with_host fixture to decorator
* One more
2024-06-04 17:50:22 +02:00
epenet
242ee04642
Improve type hints in tests (i-p) ( #118380 )
2024-05-30 08:47:08 +02:00
epenet
301c17cba7
Use registry fixtures in tests (o-p) ( #118292 )
2024-05-28 13:42:38 +02:00
J. Nick Koston
76639252c9
Make discovery flow tasks background tasks ( #116327 )
2024-04-28 08:13:37 -05:00
Erik Montnemery
db8597a742
Reduce scope of JSON/XML test fixtures ( #116197 )
2024-04-25 19:12:36 -05:00
J. Nick Koston
ee535ee611
Ensure test async_create_task eager start behavior matches production ( #115517 )
2024-04-13 15:58:52 -05:00
Sid
f8b6629b26
Enable Ruff PGH rules ( #115091 )
2024-04-08 15:42:22 +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
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -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
Sid
fe9cc6705c
Add ruff rule PIE804 ( #113620 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 12:45:18 -10:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
J. Nick Koston
5c60ff19e9
Migrate plex to use async_update_entry to alter config entries ( #110405 )
2024-02-12 21:38:38 +01:00
Joost Lekkerkerker
ef5d9d7377
Partly migrate Plex to has entity name ( #98841 )
...
* Partly migrate Plex to has entity name
* Use friendly name for device name
* Lowercase
2023-12-15 08:56:26 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
jjlawren
f116e83b62
Add update entity for Plex Media Server ( #101682 )
2023-10-11 13:06:10 +02:00
jjlawren
a1d632c5d1
Bump plexapi to 4.15.3 ( #101088 )
...
* Bump plexapi to 4.15.3
* Update tests for updated account endpoint
* Update tests for updated resources endpoint
* Switch to non-web client fixture
* Set __qualname__ attribute for new library behavior
2023-09-29 23:04:00 -04:00
Erik Montnemery
7b157baed6
Adjust plex tests which create devices ( #98204 )
2023-08-10 18:24:22 +02:00
Allen Porter
12129e9d21
Update service call return values and error handling ( #94657 )
...
* Update return signature of service calls
* Add timeout error handling in websocket api for service calls
* Update recorder tests to remove assertion on service call
* Remove timeout behavior and update callers that depend on it today
* Fix tests
* Add missing else
* await coro directly
* Fix more tests
* Update the intent task to use wait instead of timeout
* Remove script service call limits and limit constants
* Update tests that depend on service call limits
* Use wait instead of wait_for and add test
* Update homeassistant/helpers/intent.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-16 07:01:40 -07:00
Ville Skyttä
940942a74a
Import `util.dt` as `dt_util` in `components/[p-s]*` ( #93761 )
2023-05-30 00:09:42 +03:00
jjlawren
c88d4b09c9
Handle invalidated Plex token ( #91438 )
2023-04-17 09:38:16 +02:00
epenet
7982f713e1
Fix lingering tasks in plex ( #89282 )
...
* Cleanup expected_lingering_tasks in plex
* Adjust
2023-03-08 10:53:08 -05:00
epenet
c51bde9a26
Fail CI on lingering tasks ( #88905 )
2023-03-07 11:35:48 +01:00
epenet
0c65af93af
Split reauth tests in plex ( #89212 )
2023-03-06 10:02:32 +01:00
epenet
ec0223f326
Cleanup plex config flow tests ( #88991 )
2023-03-05 05:38:26 +01:00
epenet
2cdc741900
Add type hints to integration tests (part 17) ( #88163 )
2023-02-15 11:14:04 +01:00
epenet
3abf7ea18a
Add type hints to integration tests (m-p) ( #87705 )
2023-02-08 07:48:54 -08:00
Franck Nijhof
a79885ceaf
Enable Ruff SIM117 ( #86783 )
2023-01-27 11:52:49 +01:00
jjlawren
c1213857ce
Fix Plex reauth with multiple available servers ( #80508 )
2022-10-18 11:51:43 +02:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
epenet
41d2ac3943
Cleanup MediaClass and MediaType in tests ( #78817 )
...
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +02:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
J. Nick Koston
eeb9a9f058
Make sure all discovery flows are using the helper ( #76641 )
2022-08-12 09:25:23 -04:00
J. Nick Koston
4a5679db08
Prevent config entries from being reloaded concurrently ( #72636 )
...
* Prevent config entries being reloaded concurrently
- Fixes Config entry has already been setup when
two places try to reload the config entry at the
same time.
- This comes up quite a bit:
https://github.com/home-assistant/core/issues?q=is%3Aissue+sort%3Aupdated-desc+%22Config+entry+has+already+been+setup%22+is%3Aclosed
* Make sure plex creates mocks in the event loop
* drop reload_lock, already inherits
2022-05-28 10:49:55 +02:00