Compare commits
1 Commits
c0cb85d1d8
...
732ff47036
| Author | SHA1 | Date |
|---|---|---|
|
|
732ff47036 |
|
|
@ -4,12 +4,7 @@ from typing import Any
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.config_entries import (
|
||||
ConfigEntry,
|
||||
ConfigFlow,
|
||||
ConfigFlowResult,
|
||||
OptionsFlow,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
|
||||
|
|
@ -45,10 +40,10 @@ class InvalidAuth(HomeAssistantError):
|
|||
class ConfigOptionsFlowHandler(OptionsFlow):
|
||||
"""Handle WeatherStation ConfigFlow."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
def __init__(self, config_entry) -> None:
|
||||
"""Initialize flow."""
|
||||
super().__init__()
|
||||
# self.config_entry = config_entry
|
||||
self.config_entry = config_entry
|
||||
|
||||
self.windy_data: dict[str, Any] = {}
|
||||
self.windy_data_schema = {}
|
||||
|
|
@ -305,6 +300,6 @@ class ConfigFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
|
||||
@staticmethod
|
||||
@callback
|
||||
def async_get_options_flow(config_entry: ConfigEntry) -> ConfigOptionsFlowHandler:
|
||||
def async_get_options_flow(config_entry) -> ConfigOptionsFlowHandler:
|
||||
"""Get the options flow for this handler."""
|
||||
return ConfigOptionsFlowHandler()
|
||||
return ConfigOptionsFlowHandler(config_entry)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@
|
|||
"issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues",
|
||||
"requirements": [],
|
||||
"ssdp": [],
|
||||
"version": "1.8.4",
|
||||
"version": "1.8.3",
|
||||
"zeroconf": []
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue