Introduce new OAuth2 config flow helper (#27727)

* Refactor the Somfy auth implementation

* Typing

* Migrate Somfy to OAuth2 flow helper

* Add tests

* Add more tests

* Fix tests

* Fix type error

* More tests

* Remove side effect from constructor

* implementation -> auth_implementation

* Make get_implementation async

* Minor cleanup + Allow picking implementations.

* Add support for extra authorize data
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-10-18 13:06:33 -07:00
1 parent 6157be23dc
commit b6c26cb363
15 files changed
+900 -214

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ class FlowHandler:
"""Handle the configuration flow of a component."""
# Set by flow manager
flow_id: Optional[str] = None
flow_id: str = None # type: ignore
hass: Optional[HomeAssistant] = None
handler: Optional[Hashable] = None
cur_step: Optional[Dict[str, str]] = None