Automatically generate config flow list (#23802)

* Add config flow to manifest.json

* Still load config flows via config flow platform

* Fix typo

* Lint

* Update config_flows.py"

* Catch import error when setting up entry

* Lint

* Fix tests

* Fix imports

* Lint

* Fix Unifi tests

* Fix translation test

* Add homekit_controller config flow
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-05-13 01:16:55 -07:00
1 parent b8cbd39985
commit 1e22c8daca
106 files changed
+742 -440

No files matched your search

+1 -7
View File
@@ -9,8 +9,7 @@ from homeassistant.components.http import HomeAssistantView
from homeassistant.const import HTTP_BAD_REQUEST, HTTP_INTERNAL_SERVER_ERROR
from homeassistant.core import callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import (
config_entry_flow, config_validation as cv, discovery)
from homeassistant.helpers import config_validation as cv, discovery
from homeassistant.util.json import load_json, save_json
_LOGGER = logging.getLogger(__name__)
@@ -279,8 +278,3 @@ class iOSIdentifyDeviceView(HomeAssistantView):
HTTP_INTERNAL_SERVER_ERROR)
return self.json({"status": "registered"})
config_entry_flow.register_discovery_flow(
DOMAIN, 'Home Assistant iOS', lambda *_: True,
config_entries.CONN_CLASS_CLOUD_PUSH)