|
5 | 5 | import logging |
6 | 6 | from typing import Any |
7 | 7 |
|
8 | | -import voluptuous as vol # type: ignore[import-untyped] |
| 8 | +import voluptuous as vol |
9 | 9 | from homeassistant.config_entries import ConfigEntry |
10 | 10 | from homeassistant.config_entries import ConfigFlow |
11 | | -from homeassistant.config_entries import ConfigFlowResult # type: ignore[attr-defined] |
| 11 | +from homeassistant.config_entries import ConfigFlowResult |
12 | 12 | from homeassistant.config_entries import OptionsFlow |
13 | 13 | from homeassistant.const import CONF_API_KEY |
14 | 14 | from homeassistant.core import callback |
@@ -43,7 +43,7 @@ def __init__(self) -> None: |
43 | 43 | @callback |
44 | 44 | def async_get_options_flow(config_entry: ConfigEntry) -> SinricProOptionsFlow: |
45 | 45 | """Get the options flow for this handler.""" |
46 | | - return SinricProOptionsFlow(config_entry) |
| 46 | + return SinricProOptionsFlow() |
47 | 47 |
|
48 | 48 | async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: |
49 | 49 | """Handle the initial step. |
@@ -201,14 +201,6 @@ async def _validate_api_key(self, api_key: str) -> str | None: |
201 | 201 | class SinricProOptionsFlow(OptionsFlow): |
202 | 202 | """Handle options flow for SinricPro.""" |
203 | 203 |
|
204 | | - def __init__(self, config_entry: ConfigEntry) -> None: |
205 | | - """Initialize options flow. |
206 | | -
|
207 | | - Args: |
208 | | - config_entry: The config entry. |
209 | | - """ |
210 | | - self.config_entry = config_entry |
211 | | - |
212 | 204 | async def async_step_init(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: |
213 | 205 | """Manage the options. |
214 | 206 |
|
|
0 commit comments