Jewish Calendar - quality scale - use specific config flow (#144408)

This commit is contained in:
Tsvi Mostovicz 2025-05-19 22:52:06 +03:00 committed by GitHub
parent 761bb65ac6
commit 6afb60d31b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()