Migrate integrations e-h to generic flowhandler (#111862)

This commit is contained in:
Erik Montnemery 2024-02-29 20:07:36 +01:00 committed by GitHub
parent 6fe28d3764
commit e06446d0fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
107 changed files with 842 additions and 703 deletions

View file

@ -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(