Use constructor in Freebox config flow (#98870)

Create data object in init
This commit is contained in:
Joost Lekkerkerker 2023-08-23 12:08:01 +02:00 committed by GitHub
parent 5b3c60527a
commit 4f9c6351b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,9 @@ class FreeboxFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
VERSION = 1
_data: dict[str, Any] = {}
def __init__(self) -> None:
"""Initialize config flow."""
self._data: dict[str, Any] = {}
async def async_step_user(
self, user_input: dict[str, Any] | None = None