mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
Remove vol
This commit is contained in:
@@ -4,7 +4,6 @@ from collections.abc import Mapping
|
||||
from typing import Any, cast, override
|
||||
|
||||
import probatio
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.input_number import DOMAIN as INPUT_NUMBER_DOMAIN
|
||||
from homeassistant.components.number import DOMAIN as NUMBER_DOMAIN
|
||||
@@ -58,29 +57,7 @@ CONFIG_SCHEMA = probatio.Schema(
|
||||
).extend(OPTIONS_SCHEMA.schema)
|
||||
|
||||
|
||||
OPTIONS_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required(CONF_ENTITY_IDS): selector.EntitySelector(
|
||||
selector.EntitySelectorConfig(
|
||||
domain=[SENSOR_DOMAIN, NUMBER_DOMAIN, INPUT_NUMBER_DOMAIN],
|
||||
multiple=True,
|
||||
),
|
||||
),
|
||||
vol.Required(CONF_TYPE): selector.SelectSelector(
|
||||
selector.SelectSelectorConfig(
|
||||
options=_STATISTIC_MEASURES, translation_key=CONF_TYPE
|
||||
),
|
||||
),
|
||||
vol.Required(CONF_ROUND_DIGITS, default=2): selector.NumberSelector(
|
||||
selector.NumberSelectorConfig(
|
||||
min=0, max=6, mode=selector.NumberSelectorMode.BOX
|
||||
),
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
async def migrate_to_groups(handler: SchemaCommonFlowHandler) -> vol.Schema:
|
||||
async def migrate_to_groups(handler: SchemaCommonFlowHandler) -> probatio.Schema:
|
||||
"""Abort flow as migrate to groups."""
|
||||
raise AbortFlow("migrated_to_groups")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user