hass-core/homeassistant
Mark Coombes f6995b8d17 Add config flow to ecobee (#26634)
* Add basic config flow

* Fix json files

* Update __init__.py

* Fix json errors

* Move constants to const.py

* Add ecobee to generated config flows

* Update config_flow for updated API

* Update manifest to include new dependencies

Bump pyecobee, add aiofiles.

* Update constants for ecobee

* Modify ecobee setup to use config flow

* Bump dependency

* Update binary_sensor to use config_entry

* Update sensor to use config_entry

* Update __init__.py

* Update weather to use config_entry

* Update notify.py

* Update ecobee constants

* Update climate to use config_entry

* Avoid a breaking change on ecobee services

* Store api key from old config entry

* Allow unloading of config entry

* Show user a form before import

* Refine import flow

* Update strings.json to remove import step

Not needed.

* Move third party imports to top of module

* Remove periods from end of log messages

* Make configuration.yaml config optional

* Remove unused strings

* Reorganize config flow

* Remove unneeded requirement

* No need to store API key

* Update async_unload_entry

* Clean up if/else statements

* Update requirements_all.txt

* Fix config schema

* Update __init__.py

* Remove check for DATA_ECOBEE_CONFIG

* Remove redundant check

* Add check for DATA_ECOBEE_CONFIG

* Change setup_platform to async

* Fix state unknown and imports

* Change init step to user

* Have import step raise specific exceptions

* Rearrange try/except block in import flow

* Convert update() and refresh() to coroutines

...and update platforms to use async_update coroutine.

* Finish converting init to async

* Preliminary tests

* Test full implementation

* Update test_config_flow.py

* Update test_config_flow.py

* Add self to codeowners

* Update test_config_flow.py

* Use MockConfigEntry

* Update test_config_flow.py

* Update CODEOWNERS

* pylint fixes

* Register services under ecobee domain

Breaking change!

* Pylint fixes

* Pylint fixes

* Pylint fixes

* Move service strings to ecobee domain

* Fix log message capitalization

* Fix import formatting

* Update .coveragerc

* Add __init__ to coveragerc

* Add option flow test

* Update .coveragerc

* Act on updated options

* Revert "Act on updated options"

This reverts commit 56b0a859f2e3e80b6f4c77a8f784a2b29ee2cce9.

* Remove hold_temp from climate

* Remove hold_temp and options from init

* Remove options handler from config flow

* Remove options strings

* Remove options flow test

* Remove hold_temp constants

* Fix climate tests

* Pass api key to user step in import flow

* Update test_config_flow.py

Ensure that the import step calls the user step with the user's api key as user input if importing from ecobee.conf/validating imported keys fails.
2019-09-25 22:38:21 +02:00
..
auth Bump pyotp to 2.3.0 (#26849) 2019-09-23 15:43:48 +02:00
components Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
generated Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
helpers Use Python3 new super syntax sugar (#26890) 2019-09-24 15:38:20 -07:00
scripts Removes unnecessary else/elif blocks (#26884) 2019-09-24 13:53:03 -07:00
util Use Python3 new super syntax sugar (#26890) 2019-09-24 15:38:20 -07:00
__init__.py
__main__.py Removes unnecessary print_function future import (#26888) 2019-09-24 21:29:57 -07: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 Removes unnecessary utf8 source encoding declarations (#26887) 2019-09-24 21:28:50 -07:00
core.py Add and corrects typehints in Entity helper & core class (#26805) 2019-09-24 14:20: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 Fix frontend 2019-09-23 14:20:27 -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