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:
1 parent
6157be23dc
commit
b6c26cb363
15 files changed
+900
-214
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user