jjlawren and GitHub
44c7743351
Rewrite and add Plex tests ( #32633 )
...
* Rewrite and add Plex tests
* Remove unnecessary mocks
* Explicitly import constants for readability
2020-03-11 09:37:02 -07:00
Paulus Schoutsen and GitHub
4717d072c9
Remove discovery and legacy config file loading for Plex ( #32510 )
2020-03-05 12:36:18 -08:00
Paulus Schoutsen and GitHub
1615a5ee81
Use unique_id in Plex config entries ( #32489 )
2020-03-04 21:42:48 -08:00
Paulus Schoutsen and GitHub
dd7d8d4792
Remove 'show all controls' option for Plex ( #32391 )
2020-03-04 14:42:50 -08:00
jjlawren and GitHub
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 and GitHub
408b41ea02
Add device registry support for Plex ( #31797 )
...
* Add device registry support for Plex
* Fix model
* Use Plex server as sensor device identifier
2020-02-13 16:37:52 -08:00
jjlawren and GitHub
1b2f4fa19f
Improve Plex media_player entity naming ( #31755 )
2020-02-12 09:55:18 -08:00
Jc2k and Paulus Schoutsen
fdfedd086b
Rework FlowManager to use inheritance ( #30133 )
...
* Pull async_finish_flow/async_create_flow out of ConfigEntries
* Towards refactoring
* mypy fixes
* Mark Flow manager with abc.* annotations
* Flake8 fixes
* Mypy fixes
* Blacken data_entry_flow
* Blacken longer signatures caused by mypy changes
* test fixes
* Test fixes
* Fix typo
* Avoid protected member lint (W0212) in config_entries
* More protected member fixes
* Missing await
2020-01-03 11:52:01 +01:00
Bas Nijholt and Franck Nijhof
e6eed4755f
Sort imports according to PEP8 for plex ( #29708 )
2019-12-08 23:31:55 +01:00
jjlawren and Paulus Schoutsen
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 and Paulus Schoutsen
88441d5f68
Reduce connection timeout to avoid config flow timeouts ( #29172 )
2019-11-27 14:14:01 -08:00
jjlawren and Paulus Schoutsen
fc8920646b
Fix Plex test timeouts ( #28077 )
...
* Ensure mocked calls are inside patch
* Avoid filesytem I/O
2019-10-21 16:29:04 -07:00
jjlawren and Paulus Schoutsen
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 and Paulus Schoutsen
cf76f22c89
Rewrite Plex tests ( #27624 )
2019-10-13 21:59:25 -07:00
jjlawren and Paulus Schoutsen
a3c98440e0
Remove manual config flow step ( #27291 )
2019-10-07 11:29:12 -07:00
jjlawren and Martin Hjelmare
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 and Martin Hjelmare
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 and Martin Hjelmare
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 and Martin Hjelmare
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