Migrate integrations s-t to generic flowhandler (#111865)

This commit is contained in:
Erik Montnemery 2024-02-29 22:16:14 +01:00 committed by GitHub
parent e0c1feb22c
commit b0ed8c4961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
106 changed files with 792 additions and 661 deletions

View file

@ -4,8 +4,7 @@ from __future__ import annotations
from typing import Any
from homeassistant.config_entries import ConfigFlow
from homeassistant.data_entry_flow import FlowResult
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
from .const import DEFAULT_NAME, DOMAIN
@ -17,7 +16,7 @@ class SlimProtoConfigFlow(ConfigFlow, domain=DOMAIN):
async def async_step_user(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
) -> ConfigFlowResult:
"""Handle the initial step."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")