Commit Graph
139 Commits
Author SHA1 Message Date
J. Nick KostonandGitHub 76639252c9 Make discovery flow tasks background tasks (#116327) 2024-04-28 08:13:37 -05:00
Erik MontnemeryandGitHub db8597a742 Reduce scope of JSON/XML test fixtures (#116197) 2024-04-25 19:12:36 -05:00
J. Nick KostonandGitHub ee535ee611 Ensure test async_create_task eager start behavior matches production (#115517) 2024-04-13 15:58:52 -05:00
SidandGitHub f8b6629b26 Enable Ruff PGH rules (#115091) 2024-04-08 15:42:22 +02:00
0d66d298ec Enable Ruff RET504 (#114528)
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <[email protected]>
2024-04-06 11:07:37 +02:00
Joost LekkerkerkerandGitHub ee66f6ec8c Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10:00
SidandGitHub 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
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-26 00:02:16 +01:00
fe9cc6705c Add ruff rule PIE804 (#113620)
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-16 12:45:18 -10:00
Marc MuellerandGitHub 32f3f46542 Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
Marc MuellerandGitHub 1722e23df8 Add empty line after module docstring [tests l-p] (#112710) 2024-03-08 14:55:15 +01:00
J. Nick KostonandGitHub 5c60ff19e9 Migrate plex to use async_update_entry to alter config entries (#110405) 2024-02-12 21:38:38 +01:00
Joost LekkerkerkerandGitHub 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
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <[email protected]>
2023-11-27 14:38:59 +01:00
jjlawrenandGitHub f116e83b62 Add update entity for Plex Media Server (#101682) 2023-10-11 13:06:10 +02:00
jjlawrenandGitHub 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 MontnemeryandGitHub 7b157baed6 Adjust plex tests which create devices (#98204) 2023-08-10 18:24:22 +02:00
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 <[email protected]>

---------

Co-authored-by: Paulus Schoutsen <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>
2023-06-16 07:01:40 -07:00
Ville SkyttäandGitHub 940942a74a Import util.dt as dt_util in components/[p-s]* (#93761) 2023-05-30 00:09:42 +03:00
jjlawrenandGitHub c88d4b09c9 Handle invalidated Plex token (#91438) 2023-04-17 09:38:16 +02:00
epenetandGitHub 7982f713e1 Fix lingering tasks in plex (#89282)
* Cleanup expected_lingering_tasks in plex

* Adjust
2023-03-08 10:53:08 -05:00
epenetandGitHub c51bde9a26 Fail CI on lingering tasks (#88905) 2023-03-07 11:35:48 +01:00
epenetandGitHub 0c65af93af Split reauth tests in plex (#89212) 2023-03-06 10:02:32 +01:00
epenetandGitHub ec0223f326 Cleanup plex config flow tests (#88991) 2023-03-05 05:38:26 +01:00
epenetandGitHub 2cdc741900 Add type hints to integration tests (part 17) (#88163) 2023-02-15 11:14:04 +01:00
epenetandGitHub 3abf7ea18a Add type hints to integration tests (m-p) (#87705) 2023-02-08 07:48:54 -08:00
Franck NijhofandGitHub a79885ceaf Enable Ruff SIM117 (#86783) 2023-01-27 11:52:49 +01:00
jjlawrenandGitHub c1213857ce Fix Plex reauth with multiple available servers (#80508) 2022-10-18 11:51:43 +02:00
epenetandGitHub 0d696b84b2 Cleanup root component imports in tests (#78893) 2022-09-21 06:57:41 -10:00
epenetandGitHub 41d2ac3943 Cleanup MediaClass and MediaType in tests (#78817)
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +02:00
epenetandGitHub 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 KostonandGitHub eeb9a9f058 Make sure all discovery flows are using the helper (#76641) 2022-08-12 09:25:23 -04:00
J. Nick KostonandGitHub 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
jjlawrenandGitHub 9cd9d06bcc Avoid network activity during Plex tests (#72499) 2022-05-27 09:46:22 +02:00
Franck NijhofandGitHub bfb47eb212 Final clean up of helpers accessed via hass (#72032)
* Final clean up of helpers accessed via hass

* Fix circular dep

* Fix import
2022-05-17 23:42:37 +03:00
Franck NijhofandGitHub 69cc6ab5f1 Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
jjlawrenandGitHub 016f67b855 Retry on more Plex connection failures during startup (#69822) 2022-04-10 22:25:19 -07:00
jjlawrenandGitHub 112d232c2e Autoresume in-progress items from Plex media browser (#68494) 2022-03-29 11:08:26 +02:00
jjlawrenandGitHub 653305b998 Support multiple Plex servers in media browser (#68321) 2022-03-21 15:48:44 -07:00
jjlawrenandGitHub b34da1294c Improve Plex media search failure feedback (#67493) 2022-03-17 13:57:22 -07:00
1658d530e1 Add Plex scan_clients button, enable autoscan (#67055)
Co-authored-by: Robert Svensson <[email protected]>
2022-02-22 16:34:48 -08:00
8234625d30 Use Domain not Platform on test service calls (#65508)
* Adjust atag

* adjust broadlink

* Adjust onewire

* Adjust plex

* Adjust renault

* Adjust tasmota

* Adjust zha

Co-authored-by: epenet <[email protected]>
2022-02-03 14:16:35 +01:00
e17f1ea577 Support Plex in Sonos media browser (#64951)
Co-authored-by: Paulus Schoutsen <[email protected]>
2022-01-26 10:40:47 -08:00
jjlawrenandGitHub cdad1a9f27 Use local Sonos API for Plex music playback (#63357) 2022-01-25 21:10:11 -08:00
jjlawrenandGitHub 34d0f2ffd7 Add "Recommended" and radio station support to Plex media browser (#64057) 2022-01-25 13:02:23 -08:00
jjlawrenandGitHub 10195dc700 Improve server selection for Plex config flows (#63408) 2022-01-05 22:20:33 +01:00
Robert HillisandGitHub 75e8a2ec77 Use platform enums in plex tests (#62561) 2021-12-22 07:59:54 -05:00
Ville SkyttäandGitHub 5bf67cac66 Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
Paulus SchoutsenandGitHub 31153ac155 Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00
jjlawrenandGitHub 3672889609 Add warning if Sonos not linked to Plex (#58150) 2021-10-24 12:51:45 -10:00