mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Improve typing for Mikrotik (#175213)
This commit is contained in:
@@ -5,12 +5,7 @@ from typing import Any, override
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.config_entries import (
|
||||
ConfigEntry,
|
||||
ConfigFlow,
|
||||
ConfigFlowResult,
|
||||
OptionsFlow,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_PASSWORD,
|
||||
@@ -29,7 +24,7 @@ from .const import (
|
||||
DEFAULT_NAME,
|
||||
DOMAIN,
|
||||
)
|
||||
from .coordinator import get_api
|
||||
from .coordinator import MikrotikConfigEntry, get_api
|
||||
from .errors import CannotConnect, LoginError
|
||||
|
||||
|
||||
@@ -42,7 +37,7 @@ class MikrotikFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
@callback
|
||||
@override
|
||||
def async_get_options_flow(
|
||||
config_entry: ConfigEntry,
|
||||
config_entry: MikrotikConfigEntry,
|
||||
) -> MikrotikOptionsFlowHandler:
|
||||
"""Get the options flow for this handler."""
|
||||
return MikrotikOptionsFlowHandler()
|
||||
|
||||
Reference in New Issue
Block a user