Commit Graph
68 Commits
Author SHA1 Message Date
J. Nick KostonandGitHub 76639252c9 Make discovery flow tasks background tasks (#116327) 2024-04-28 08:13:37 -05:00
Joost LekkerkerkerandGitHub ee66f6ec8c Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10: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
Marc MuellerandGitHub 32f3f46542 Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +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
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 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
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
J. Nick KostonandGitHub eeb9a9f058 Make sure all discovery flows are using the helper (#76641) 2022-08-12 09:25:23 -04:00
jjlawrenandGitHub 9cd9d06bcc Avoid network activity during Plex tests (#72499) 2022-05-27 09:46:22 +02: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 380cff167e Use HTTPStatus in components/[nop]* (#58279) 2021-10-23 20:56:30 +02:00
a4d9019ffc Refactor persistent notification to no longer route all data via a service (#57157)
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <[email protected]>
2021-10-07 12:58:00 +02:00
Erik MontnemeryandGitHub acdddabe1f Use hass_client_no_auth test fixture in integrations h-p (#55583) 2021-09-02 14:49:40 +02:00
jjlawrenandGitHub d5fe7e0e5a Fallback to try all known Plex servers if none marked present (#53643) 2021-08-24 12:05:24 +02:00
jjlawrenandGitHub 225732d00e Remove I/O in Plex tests (#53196) 2021-07-19 18:50:04 +02:00
Ville SkyttäandGitHub 19d25cd901 Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
jjlawrenandGitHub 37e8571fe8 Use header URI in Plex config flow (#49915) 2021-04-30 23:15:59 +02:00
Ville SkyttäandGitHub 153d6e891e Use config_entries.SOURCE_* constants (#49631) 2021-04-25 11:27:40 +02:00
jjlawrenandGitHub d62297a28b Add Plex library count sensors (#48339) 2021-03-31 13:57:16 +02:00
jjlawrenandGitHub 2f1dba74d1 Use Plex server URL as config entry title (#47010) 2021-02-24 20:57:02 +01:00
jjlawrenandGitHub 0426b211f6 Rewrite Plex tests to use mocked payloads (#44044) 2021-01-07 19:56:52 +01:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
f2f935506e Use Plex websocket payloads to reduce overhead (#42332)
Co-authored-by: Paulus Schoutsen <[email protected]>
2020-12-02 19:00:13 +01:00
jjlawrenandGitHub c63c253b7f Discover Plex clients using GDM (#39053) 2020-10-14 15:46:52 +02:00
jjlawrenandGitHub 3596eb39f2 Add support to reauthorize expired Plex tokens (#40469) 2020-09-28 16:14:54 +02:00
jjlawrenandGitHub df9634a41f Refactor Plex tests using fixtures (#40260)
* Refactor Plex tests using fixtures

* Avoid unnecessary coroutine declaration
2020-09-22 22:14:41 -05:00
Franck NijhofandGitHub 1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
jjlawrenandGitHub 7128092139 Fix missing Plex account mocks in tests (#37591) 2020-07-06 22:58:43 -07:00
J. Nick KostonandGitHub bea3d841d2 Mock setup in plex test to prevent CI failure (#37590) 2020-07-06 17:25:22 -07:00
jjlawrenandGitHub ec13eecc59 Update Plex tests to mock websockets (#37147)
* Update Plex tests to mock websockets

* Avoid unnecessary class mock
2020-06-27 10:03:51 +02:00
jjlawrenandGitHub 40573bf393 Plex tests cleanup and additions (#37117) 2020-06-25 23:24:58 -07:00
jjlawrenandGitHub fd1a8dd96c Fix Plex when using local tokenless authentication (#37096) 2020-06-25 17:10:40 -07:00
jjlawrenandGitHub d5cc3208af Discover controllable Plex clients using plex.tv (#36857) 2020-06-17 12:04:47 -07:00
jjlawrenandGitHub d4d233536f Fix missing options in Plex config entry (#36683) 2020-06-11 15:45:00 -07:00
jjlawrenandGitHub 9aac8482d5 Remove deprecated Plex YAML config (#36388) 2020-06-03 09:20:21 -07:00
jjlawrenandGitHub 44d7169642 Fix flaky Plex test (#36391) 2020-06-02 17:37:10 -05:00
jjlawrenandGitHub c12f8bed43 Plex discovery on demand (#35303)
* Allow Plex discovery on demand

* Add new discovery source

* Add tests
2020-05-13 09:11:00 -04:00
jjlawrenandGitHub ad419911bc Add config option to ignore Plex Web clients (#34708) 2020-05-08 09:49:15 -07:00
Franck NijhofandGitHub 2223592486 Add get_url helper, deprecate base_url (#35224) 2020-05-08 02:29:47 +02:00
jjlawrenandGitHub dfe2a457c0 Handle config with a limited Plex account (#35218) 2020-05-06 18:46:00 -07:00
jjlawrenandGitHub 740d9c575e Add manual config flow for Plex (#34476) 2020-05-05 15:42:21 -07:00