mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Jewish Calendar - quality scale - use specific config flow (#144408)
This commit is contained in:
parent
761bb65ac6
commit
6afb60d31b
@ -9,12 +9,7 @@ import zoneinfo
|
|||||||
from hdate.translator import Language
|
from hdate.translator import Language
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import (
|
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
|
||||||
ConfigEntry,
|
|
||||||
ConfigFlow,
|
|
||||||
ConfigFlowResult,
|
|
||||||
OptionsFlow,
|
|
||||||
)
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_ELEVATION,
|
CONF_ELEVATION,
|
||||||
CONF_LANGUAGE,
|
CONF_LANGUAGE,
|
||||||
@ -44,6 +39,7 @@ from .const import (
|
|||||||
DEFAULT_NAME,
|
DEFAULT_NAME,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
)
|
)
|
||||||
|
from .entity import JewishCalendarConfigEntry
|
||||||
|
|
||||||
OPTIONS_SCHEMA = vol.Schema(
|
OPTIONS_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
@ -89,7 +85,7 @@ class JewishCalendarConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
@callback
|
@callback
|
||||||
def async_get_options_flow(
|
def async_get_options_flow(
|
||||||
config_entry: ConfigEntry,
|
config_entry: JewishCalendarConfigEntry,
|
||||||
) -> JewishCalendarOptionsFlowHandler:
|
) -> JewishCalendarOptionsFlowHandler:
|
||||||
"""Get the options flow for this handler."""
|
"""Get the options flow for this handler."""
|
||||||
return JewishCalendarOptionsFlowHandler()
|
return JewishCalendarOptionsFlowHandler()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user