🏡 Open source home automation that puts local control and privacy first.
Find a file
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
.devcontainer Improve startup of devcontainer (#26572) 2019-09-11 11:20:21 +02:00
.github Exempt 'Help wanted' issue from stale bot (#26829) 2019-09-22 08:31:01 -07:00
.vscode Improve startup of devcontainer (#26572) 2019-09-11 11:20:21 +02:00
docs Add missing helpers (#21021) 2019-02-12 20:52:02 -06:00
homeassistant Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
script Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
tests Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
.codecov.yml Only comment with changed coverage on release PRs [skip-ci] (#23224) 2019-04-18 20:58:35 -07:00
.coveragerc Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
.dockerignore Docker cleanup. (#8226) 2017-06-30 08:07:33 -07:00
.gitattributes Fix line endings [skipci] (#12333) 2018-02-11 23:07:28 -08:00
.gitignore Ignore test output 2019-09-11 08:28:57 +02:00
.hound.yml Add .hound.yml 2016-11-13 11:34:09 -08:00
.ignore Include .ignore file for search utilities (#5290) 2017-01-16 22:52:53 -08:00
.pre-commit-config.yaml Run flake8 on pre-commit (#26028) 2019-08-17 21:15:55 -07:00
.readthedocs.yml Rename readthedocs file (#17718) 2018-10-23 17:39:17 +02:00
.travis.yml Test with 3.6.1 in Travis (#26347) 2019-09-02 15:51:59 +02:00
azure-pipelines-ci.yml Update azure-pipelines-ci.yml for Azure Pipelines 2019-09-16 10:34:31 +02:00
azure-pipelines-release.yml Fix release access for bram (#26693) 2019-09-17 15:59:12 +02:00
azure-pipelines-translation.yml Update azure-pipelines-translation.yml for Azure Pipelines 2019-09-05 12:09:21 +02:00
azure-pipelines-wheels.yml Update azure-pipelines-wheels.yml for Azure Pipelines 2019-09-13 22:29:39 +02:00
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:34 -08:00
CODE_OF_CONDUCT.md Add organization docs 2017-01-22 16:21:20 -08:00
CODEOWNERS Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
CONTRIBUTING.md Update developer doc links to developers.home-assistant.io (#16622) 2018-09-15 13:27:37 +02:00
Dockerfile.dev Improve startup of devcontainer (#26572) 2019-09-11 11:20:21 +02:00
LICENSE.md Update license to official GitHub template (#16470) 2018-09-07 10:11:51 +02:00
MANIFEST.in Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
mypyrc Type check various base components (#25878) 2019-08-11 20:38:18 -07:00
pylintrc Add Black 2019-07-31 12:23:23 -07:00
pyproject.toml Add Black 2019-07-31 12:23:23 -07:00
README.rst Remove badges from README [skipci] (#23815) 2019-05-12 23:55:16 -07:00
requirements_all.txt Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
requirements_docs.txt Upgrade Sphinx to 2.1.2 (#24693) 2019-06-23 07:49:40 +02:00
requirements_test.txt Fix CI 2019-09-24 20:47:24 -07:00
requirements_test_all.txt Add config flow to ecobee (#26634) 2019-09-25 22:38:21 +02:00
setup.cfg Add reproduce state template (#26866) 2019-09-23 23:23:53 -07:00
setup.py Bump python-slugify to 3.0.4 (#26801) 2019-09-21 22:10:34 -07:00
tox.ini Upgrade pydocstyle to 4.0.0, do not run in tox (#25667) 2019-08-04 17:05:43 +02:00

Home Assistant |Chat Status|
=================================================================================

Home Assistant is a home automation platform running on Python 3. It is able to track and control all devices at home and offer a platform for automating control.

To get started:

.. code:: bash

    python3 -m pip install homeassistant
    hass --open-ui

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://home-assistant.io/demo/>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation-2/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-components|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/en/architecture_index.html>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/en/creating_component_index.html>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://discord.gg/c5DvZ4e
.. |screenshot-states| image:: https://raw.github.com/home-assistant/home-assistant/master/docs/screenshots.png
   :target: https://home-assistant.io/demo/
.. |screenshot-components| image:: https://raw.github.com/home-assistant/home-assistant/dev/docs/screenshot-components.png
   :target: https://home-assistant.io/components/