* Add support for Installed Auth authentication flows.
Add support for additional credential types to make configuration simpler for
end users. The existing Web App auth flow requires users to configure
redirect urls with Google that has a very high security bar: requires ssl,
and a publicly resolvable dns name.
The new Installed App flow requires the user to copy/paste an access code
and is the same flow used by the `google` calendar integration. This also
allows us to let users create one authentication credential to use with
multiple google integrations.
* Remove hard migration for nest config entries, using soft migration
* Add comment explaining soft migration
* Revet changes to common.py made obsolete by removing migration
* Reduce unnecessary diffs in nest common.py
* Update config entries using library method
* Run `python3 -m script.translations develop`
* Revert nest auth domain
* Remove compat function which is no longer needed
* Remove stale nest comment
* Adjust typing for python3.8
* Address PR feedback for nest auth revamp
* Fail deprecated options
* new removed validator
* correct module_name - add tests
* Add test cant find module cv.removed
* module name from stack+1
* Remove error from log. Just throw.
* assert on thrown exception text
* cleanup formatting remove KeyStyleAdapter
* format the replacement_key and update test
* deprecated vs removed - add raise_if_present opt
* doc string update
* is deprecated
* Add type hints.
* Refactor AuroraDevice to AuroraDeviceEntity
* Refactor AuroraDevice to AuroraDeviceEntity
* Connection class is defined in manifest.
* Separate words with underscore in variable names
* Remove duplicated code.
* Remove unused "unknown" string
* Test import yaml when integration already setup
* Remove test already done in config_flow test
* Convert variable names to snake case
* Shorten AuroraDeviceEntity to AuroraEntity
* Add typing
* Remove unnecessary integration setup in test.
* Refactor "already_setup" to "already_configured"
* Use common string
* Reduce the amount of code in the try block.
* Fix merge
* Allow yaml setup to be deferred if no comms
* Properly setup all sensors for defered yaml setup.
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add type hints.
* Refactor AuroraDevice to AuroraDeviceEntity
* Refactor AuroraDevice to AuroraDeviceEntity
* Connection class is defined in manifest.
* Separate words with underscore in variable names
* Remove duplicated code.
* Remove unused "unknown" string
* Test import yaml when integration already setup
* Remove test already done in config_flow test
* Convert variable names to snake case
* Shorten AuroraDeviceEntity to AuroraEntity
* Add typing
* Remove unnecessary integration setup in test.
* Refactor "already_setup" to "already_configured"
* Use common string
* Reduce the amount of code in the try block.
* Allow yaml setup to be deferred if no comms
* Properly setup all sensors for defered yaml setup.
* Code review: move line out of try block.
* Improve test coverage
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Defer unique_id assignment during yaml import if dark
* Back out variable name change to simplify.
* Allow config flow yaml setup deferral.
* Fix deferred yaml import
* Code review: only wrap necessary lines in try blk
* Code review: catch possible duplicate unique_id
* Simplify assignment.
* Code review: use timedelta to retry yaml import
* Code review: if a different error occurs, raise it
* Remove current config entry if duplicate unique_id
* Code review: remove unnecessary line.
* Code review: revert change, leave to other PR.
* Code review: remove unnecessary patch & min->sec
* Remove unnecessary else after raise.
* Increase test coverage.
* Check the number of config entries at each stage
* Raise ConfigEntryNotReady when connection fails.
* Log & return false for error on yaml import