core/homeassistant
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
..
auth Use PEP 526 type annotations, add some type hints (#26464) 2019-09-07 09:48:58 +03:00
components Add Plex config flow support (#26548) 2019-09-19 23:29:26 +02:00
generated Add Plex config flow support (#26548) 2019-09-19 23:29:26 +02:00
helpers Remove device from device action schema (#26536) 2019-09-09 10:40:22 -07:00
scripts Replaces IOError by OSError (#26428) 2019-09-04 19:09:24 +02:00
util Migrate legacy typehints in core to PEP-526 (#26403) 2019-09-03 20:36:04 -07:00
__init__.py
__main__.py Replaces IOError by OSError (#26428) 2019-09-04 19:09:24 +02:00
bootstrap.py Deprecate Python 3.6.0 (#26575) 2019-09-11 12:42:54 -06:00
config.py Replaces IOError by OSError (#26428) 2019-09-04 19:09:24 +02:00
config_entries.py Migrate legacy typehints in core to PEP-526 (#26403) 2019-09-03 20:36:04 -07:00
const.py Bumped version to 0.98.5 2019-09-06 18:01:30 -07:00
core.py Migrate legacy typehints in core to PEP-526 (#26403) 2019-09-03 20:36:04 -07:00
data_entry_flow.py Migrate legacy typehints in core to PEP-526 (#26403) 2019-09-03 20:36:04 -07:00
exceptions.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
loader.py Use PEP 526 type annotations, add some type hints (#26464) 2019-09-07 09:48:58 +03:00
monkey_patch.py Black 2019-07-31 12:25:30 -07:00
package_constraints.txt Bump aiohttp to 3.6.1 (#26739) 2019-09-19 14:05:02 -07:00
requirements.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
setup.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00