Migrate integrations e-h to generic flowhandler (#111862)
This commit is contained in:
parent
6fe28d3764
commit
e06446d0fa
107 changed files with 842 additions and 703 deletions
|
@ -7,8 +7,8 @@ from googleapiclient.discovery import build
|
|||
from googleapiclient.errors import HttpError
|
||||
from googleapiclient.http import HttpRequest
|
||||
|
||||
from homeassistant.config_entries import ConfigFlowResult
|
||||
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_TOKEN
|
||||
from homeassistant.data_entry_flow import FlowResult
|
||||
from homeassistant.helpers import config_entry_oauth2_flow
|
||||
|
||||
from .const import DOMAIN, OAUTH2_SCOPES
|
||||
|
@ -36,7 +36,7 @@ class OAuth2FlowHandler(
|
|||
"prompt": "consent",
|
||||
}
|
||||
|
||||
async def async_oauth_create_entry(self, data: dict[str, Any]) -> FlowResult:
|
||||
async def async_oauth_create_entry(self, data: dict[str, Any]) -> ConfigFlowResult:
|
||||
"""Create an entry for the flow."""
|
||||
try:
|
||||
resource = build(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue