mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 06:15:47 -04:00
Fix config flow
This commit is contained in:
@@ -9,6 +9,7 @@ from homeassistant.components.input_number import DOMAIN as INPUT_NUMBER_DOMAIN
|
||||
from homeassistant.components.number import DOMAIN as NUMBER_DOMAIN
|
||||
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
||||
from homeassistant.const import CONF_TYPE
|
||||
from homeassistant.data_entry_flow import AbortFlow
|
||||
from homeassistant.helpers import selector
|
||||
from homeassistant.helpers.schema_config_entry_flow import (
|
||||
SchemaCommonFlowHandler,
|
||||
@@ -57,8 +58,7 @@ async def migrate_to_groups(
|
||||
handler: SchemaCommonFlowHandler, user_input: dict[str, Any]
|
||||
) -> dict[str, Any]:
|
||||
"""Abort flow as migrate to groups."""
|
||||
handler.parent_handler.async_abort(reason="migrated_to_groups")
|
||||
return user_input
|
||||
raise AbortFlow("migrated_to_groups")
|
||||
|
||||
|
||||
CONFIG_FLOW = {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"data_description": {
|
||||
"round_digits": "Controls the number of decimal digits in the output when the statistics characteristic is mean, median or sum."
|
||||
},
|
||||
"description": "Create a sensor that calculates a min, max, mean, median or sum from a list of input sensors.",
|
||||
"description": "Combine the state of several sensors has been deprecated, please use the group integration instead.",
|
||||
"title": "[%key:component::min_max::title%]"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user