Define __init__ before other methods in OneDrive for Business (#187558)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Joost Lekkerkerker
2026-10-20 18:00:22 +02:00
committed by GitHub
co-authored by Claude
parent 8a034b5855
commit 6541d25bf5
@@ -38,6 +38,11 @@ class OneDriveForBusinessConfigFlow(AbstractOAuth2FlowHandler, domain=DOMAIN):
client: OneDriveClient
drive: Drive
def __init__(self) -> None:
"""Initialize the OneDrive config flow."""
super().__init__()
self._data: dict[str, Any] = {}
@property
@override
def logger(self) -> logging.Logger:
@@ -50,11 +55,6 @@ class OneDriveForBusinessConfigFlow(AbstractOAuth2FlowHandler, domain=DOMAIN):
"""Extra data that needs to be appended to the authorize url."""
return {"scope": " ".join(OAUTH_SCOPES)}
def __init__(self) -> None:
"""Initialize the OneDrive config flow."""
super().__init__()
self._data: dict[str, Any] = {}
@override
async def async_step_user(
self, user_input: dict[str, Any] | None = None