hass-core/tests
Allen Porter cc543b200d
Update nest config flow to dramatically simplify end user setup with automated pub/sub subscription creation (#59260)
* Configure nest pubsub subscriber automatically

Update the config flow to configure the nest pubsub subscriber automatically.
After completing the authentication step, the user is now asked for the google
cloud console ID, which is needed to create a subscription.

Home Assistant manages the lifecycle of a subscription only when it is created
by the ConfigFlow. Otherwise (if specified in configuration.yaml) it treats
it similarly as before.

These are the considerations or failure modes taken into account:
- Subscription is created with reasonable default values as previously recommended (e.g. retion only keeps 5-15 minutes of backlog messages)
- Subscriptions are created with a naming scheme that makes it clear they came from home assistant, and with a random
  string
- Subscriptions are cleaned up when the ConfigEntry is removed. If removal fails, a subscription that is orphaned will
  be deleted after 30 days
- If the subscription gets into a bad state or deleted, the user can go through the re-auth flow to re-create it.
- Users can still specifcy a CONF_SUBSCRIBER_ID in the configuration.yaml, and
skip automatic subscriber creation

* Remove unnecessary nest config flow diffs and merge in upstream changes

* Incorporate review feedback into nest subscription config flow

* Update text wording in nest config flow
2021-11-29 22:41:29 -08:00
..
auth Add local only users (#57598) 2021-11-29 14:01:03 -08:00
components Update nest config flow to dramatically simplify end user setup with automated pub/sub subscription creation (#59260) 2021-11-29 22:41:29 -08:00
fixtures Fix regression after merging fixtures with old path (#59187) 2021-11-05 21:10:55 +01:00
hassfest Fix issue with ranges in requirements with hassfest (#59470) 2021-11-12 09:39:30 +01:00
helpers Use dataclass for SsdpServiceInfo (#59931) 2021-11-29 06:10:07 -10:00
mock Disable strict type checks for tests (#49851) 2021-04-29 15:57:02 +02:00
resources
scripts Allow IntegrationNotFound when checking config in safe mode (#56283) 2021-09-17 22:25:50 -07:00
test_util Use HTTPStatus instead of HTTP_* constants in various test mocks (#56543) 2021-10-01 15:52:45 -07:00
testing_config Add native unit types for weather entities (#59533) 2021-11-29 14:44:44 +01:00
util Remove unused OrderedEnum (#60392) 2021-11-26 11:10:39 +01:00
__init__.py
bandit.yaml Enable more Bandit tests (#44307) 2020-12-19 12:35:13 +01:00
common.py Improve some entity registry tests (#59902) 2021-11-22 10:24:37 +01:00
conftest.py Bump zeroconf to 0.37.0 (#59932) 2021-11-18 20:23:20 -08:00
ignore_uncaught_exceptions.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_bootstrap.py Report integrations that block startup wrap up (#56003) 2021-09-09 20:39:22 -07:00
test_config.py Add minor version support to storage.Store (#59882) 2021-11-18 17:15:40 +01:00
test_config_entries.py Use dataclass for SsdpServiceInfo (#59931) 2021-11-29 06:10:07 -10:00
test_core.py Fix external internal url core check (#54310) 2021-08-09 10:52:14 +02:00
test_data_entry_flow.py Index in-progress flows to avoid linear search (#58146) 2021-10-22 07:19:49 -10:00
test_exceptions.py Remove stale debug statements from tests (#51059) 2021-05-25 11:52:20 +02:00
test_loader.py Ensure domain is correct format (#58429) 2021-10-25 15:56:07 -07:00
test_main.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_requirements.py Avoid checking if a package is installed if it already failed (#56698) 2021-09-26 22:32:25 -07:00
test_runner.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_setup.py Replace http startup logic with async_when_setup_or_start (#48784) 2021-04-13 14:10:58 -07:00
test_test_fixtures.py Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00