epenet
469dbec089
Add type hints to plex data ( #89221 )
...
* Add type hints to plex data
* Rename method
2023-03-17 22:14:24 +01:00
jjlawren
c1213857ce
Fix Plex reauth with multiple available servers ( #80508 )
2022-10-18 11:51:43 +02:00
J. Nick Koston
eeb9a9f058
Make sure all discovery flows are using the helper ( #76641 )
2022-08-12 09:25:23 -04:00
epenet
d323508f79
Add type hints to async_step_reauth ( #74164 )
2022-06-29 11:25:37 +02:00
epenet
42ed0fd47b
Add async_get_options_flow type hints (n-z) ( #73431 )
2022-06-13 13:30:41 +02:00
Marc Mueller
9b9b553521
Disable no-self-use [pylint] ( #70641 )
...
* Disable no-self-use
* Remove disable comments
2022-04-25 07:41:01 -07:00
Marc Mueller
911b159281
Cleanup after pylint update ( #68657 )
2022-03-26 00:34:12 +01:00
jjlawren
10195dc700
Improve server selection for Plex config flows ( #63408 )
2022-01-05 22:20:33 +01:00
jjlawren
058520769b
Handle missing monitored users in Plex options ( #63411 )
2022-01-04 15:16:53 -08:00
Marc Mueller
4513ee4ea5
Use assignment expressions 12 ( #57937 )
2021-10-20 14:34:08 -07:00
Marc Mueller
48bada5a18
Update pylint to 2.11.1 ( #56364 )
2021-09-18 13:52:59 +02:00
Franck Nijhof
8eb27374c6
Clean up connection classes in integrations P-S ( #49893 )
2021-04-30 21:04:44 -10:00
jjlawren
37e8571fe8
Use header URI in Plex config flow ( #49915 )
2021-04-30 23:15:59 +02:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
jjlawren
2f1dba74d1
Use Plex server URL as config entry title ( #47010 )
2021-02-24 20:57:02 +01:00
Franck Nijhof
bc1daf1802
None optional hass typing in FlowHandler ( #46462 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
jjlawren
39cdf61c2d
Fix Plex auth issues by setting header ( #43081 )
2020-11-11 09:40:25 +01:00
jjlawren
b3464c5087
Remove unnecessary instance attribute in Plex reauth config flow ( #41000 )
...
* Avoid unnecessary instance attribute
* Don't need to enrich existing entry data
2020-10-01 21:38:57 +02:00
jjlawren
3596eb39f2
Add support to reauthorize expired Plex tokens ( #40469 )
2020-09-28 16:14:54 +02:00
Franck Nijhof
3cc94f7d6a
ConfigFlow default discovery without unique ID ( #36754 )
2020-06-15 13:38:38 +02:00
jjlawren
9aac8482d5
Remove deprecated Plex YAML config ( #36388 )
2020-06-03 09:20:21 -07:00
Quentame
1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ( #36233 )
...
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const
* Fix pylint
* Use in tests
* Search for "client_id"
* Fix tests
* Fix test
* Fix test
2020-05-30 17:27:20 +02:00
jjlawren
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
Franck Nijhof
e3e3a113e9
async_get_url -> get_url ( #35382 )
2020-05-08 21:53:28 +02:00
jjlawren
ad419911bc
Add config option to ignore Plex Web clients ( #34708 )
2020-05-08 09:49:15 -07:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
jjlawren
740d9c575e
Add manual config flow for Plex ( #34476 )
2020-05-05 15:42:21 -07:00
Franck Nijhof
7d3c974747
Use set & dict literals ( #33636 )
...
Co-authored-by: Daniel Høyer Iversen <mail@dahoiv.net>
2020-04-04 20:05:15 +02:00
Paulus Schoutsen
d4615fd432
Freeze config entry data ( #32615 )
...
* Freeze config entry data
* Fix mutating entry.data
* Fix config entry options tests
2020-03-09 14:07:50 -07:00
Paulus Schoutsen
4717d072c9
Remove discovery and legacy config file loading for Plex ( #32510 )
2020-03-05 12:36:18 -08:00
Paulus Schoutsen
1615a5ee81
Use unique_id in Plex config entries ( #32489 )
2020-03-04 21:42:48 -08:00
Paulus Schoutsen
dd7d8d4792
Remove 'show all controls' option for Plex ( #32391 )
2020-03-04 14:42:50 -08:00
jjlawren
0213f43f10
Add options to ignore shared/managed Plex clients ( #31738 )
...
* Add option to ignore shared/managed Plex clients
* Start to allow user selection
* hass object not ready during init
* Don't bother sorting
* Plex account multi-select, handle new users not matching config
* Fix/add tests
* Lint simplifications
* Review cleanup
* Oops
* Rename options attributes, fix/add tests
2020-02-18 16:46:45 -08:00
jjlawren
59932545ab
Update Plex connection class to push ( #31806 )
2020-02-13 16:45:48 -07:00
Bas Nijholt
e6eed4755f
Sort imports according to PEP8 for plex ( #29708 )
2019-12-08 23:31:55 +01:00
jjlawren
6a02c6540e
Stop Plex config flow imports where more user input needed ( #29241 )
...
* Abort imports that require user interaction, update logs and tests
* Disable lint
2019-11-30 22:07:12 -08:00
jjlawren
ef687a36ff
Add Plex debug logging ( #28665 )
2019-11-09 17:02:56 -06:00
jjlawren
a644182b5e
Save client identifier from Plex auth for future use ( #27951 )
...
* Save client identifier from auth for future use
* Bump requirements
* Stick with version 1
2019-10-22 23:32:57 -07:00
jjlawren
eeb1bfc6f5
Central update for Plex platforms ( #27764 )
...
* Update Plex platforms together
* Remove unnecessary methods
* Overhaul of Plex update logic
* Apply suggestions from code review
Use set instead of list
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
* Review suggestions and cleanup
* Fixes, remove sensor throttle
* Guarantee entity name, use common scheme
* Keep name stable once set
2019-10-19 23:31:15 +02:00
jjlawren
0888098718
Use URI provided by Plex for local connections ( #27515 )
...
* Use provided URI for local connections
* Use provided plexapi connection method
* Remove unused mock from tests
* Handle potential edge case(s)
2019-10-17 17:31:53 -07:00
jjlawren
a3c98440e0
Remove manual config flow step ( #27291 )
2019-10-07 11:29:12 -07:00
jjlawren
571ab5a978
Plex external config flow ( #26936 )
...
* Plex external auth config flow
* Update requirements_all
* Test dependency
* Bad await, delay variable
* Use hass aiohttp session, bump plexauth
* Bump requirements
* Bump library version again
* Use callback view instead of polling
* Update tests for callback view
* Reduce timeout with callback
* Review feedback
* F-string
* Wrap sync call
* Unused
* Revert unnecessary async wrap
2019-10-01 17:20:30 +02:00
jjlawren
9b204ad162
Add Plex config options support ( #26870 )
...
* Add config options support
* Actually copy dict
* Move media_player options to PlexServer class
* Handle updated config options
* Move callback out of server
2019-09-26 11:10:20 +02:00
jjlawren
5914475fe5
Add manual step to Plex config flow ( #26773 )
...
* Add manual config step
* Pass token to manual step
* Fix for no token
* Show error
* Specify key location
* Cast discovery port to int
2019-09-23 00:23:14 +02:00
jjlawren
2d12bac0e2
Add Plex config flow support ( #26548 )
...
* Add config flow support
* Log error on failed connection
* Review comments
* Unused errors
* Move form to step
* Use instance var instead of passing argument
* Only share servers created by component
* Return errors early to avoid try:else
* Separate debug for validation vs setup
* Unnecessary
* Unnecessary checks
* Combine import flows, move logic to component
* Use config entry discovery handler
* Temporary lint fix
* Filter out servers already configured
* Remove manual config flow
* Skip discovery if a config exists
* Swap conditional to reduce indenting
* Only discover when no configs created or creating
* Un-nest function
* Proper async use
* Move legacy file import to discovery
* Fix, bad else
* Separate validate step
* Unused without manual setup step
* Async oops
* First attempt at tests
* Test cleanup
* Full test coverage for config_flow, enable tests
* Lint
* Fix lint vs black
* Add test init
* Add test package requirement
* Actually run script
* Use 'not None' convention
* Group exceptions by result
* Improve logic, add new error and test
* Test cleanup
* Add more asserts
2019-09-19 23:29:26 +02:00