mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
parent
87db981712
commit
65279c94ac
@ -21,7 +21,6 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.config_entries import (
|
from homeassistant.config_entries import (
|
||||||
SOURCE_REAUTH,
|
SOURCE_REAUTH,
|
||||||
ConfigEntry,
|
|
||||||
ConfigFlow,
|
ConfigFlow,
|
||||||
ConfigFlowResult,
|
ConfigFlowResult,
|
||||||
OptionsFlow,
|
OptionsFlow,
|
||||||
@ -32,6 +31,7 @@ from homeassistant.helpers import device_registry as dr
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
from homeassistant.helpers.service_info.dhcp import DhcpServiceInfo
|
from homeassistant.helpers.service_info.dhcp import DhcpServiceInfo
|
||||||
|
|
||||||
|
from . import RoborockConfigEntry
|
||||||
from .const import (
|
from .const import (
|
||||||
CONF_BASE_URL,
|
CONF_BASE_URL,
|
||||||
CONF_ENTRY_CODE,
|
CONF_ENTRY_CODE,
|
||||||
@ -193,7 +193,7 @@ class RoborockFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
@callback
|
@callback
|
||||||
def async_get_options_flow(
|
def async_get_options_flow(
|
||||||
config_entry: ConfigEntry,
|
config_entry: RoborockConfigEntry,
|
||||||
) -> RoborockOptionsFlowHandler:
|
) -> RoborockOptionsFlowHandler:
|
||||||
"""Create the options flow."""
|
"""Create the options flow."""
|
||||||
return RoborockOptionsFlowHandler(config_entry)
|
return RoborockOptionsFlowHandler(config_entry)
|
||||||
@ -202,7 +202,7 @@ class RoborockFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
class RoborockOptionsFlowHandler(OptionsFlow):
|
class RoborockOptionsFlowHandler(OptionsFlow):
|
||||||
"""Handle an option flow for Roborock."""
|
"""Handle an option flow for Roborock."""
|
||||||
|
|
||||||
def __init__(self, config_entry: ConfigEntry) -> None:
|
def __init__(self, config_entry: RoborockConfigEntry) -> None:
|
||||||
"""Initialize options flow."""
|
"""Initialize options flow."""
|
||||||
self.options = deepcopy(dict(config_entry.options))
|
self.options = deepcopy(dict(config_entry.options))
|
||||||
|
|
||||||
|
@ -72,4 +72,4 @@ rules:
|
|||||||
# Platinum
|
# Platinum
|
||||||
async-dependency: todo
|
async-dependency: todo
|
||||||
inject-websession: done
|
inject-websession: done
|
||||||
strict-typing: todo
|
strict-typing: done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user