mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
Mods
This commit is contained in:
@@ -7,7 +7,6 @@ from typing import Any, cast, override
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import websocket_api
|
||||
from homeassistant.config_entries import ConfigFlowResult
|
||||
from homeassistant.const import CONF_ENTITIES, CONF_TYPE
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
@@ -343,16 +342,6 @@ class GroupConfigFlowHandler(SchemaConfigFlowHandler, domain=DOMAIN):
|
||||
options_flow = OPTIONS_FLOW
|
||||
options_flow_reloads = True
|
||||
|
||||
async def async_step_import(self, import_data: dict[str, Any]) -> ConfigFlowResult:
|
||||
"""Import from a min_max config entry."""
|
||||
new_data = import_data.copy()
|
||||
new_data[CONF_ENTITIES] = new_data.pop("entity_ids")
|
||||
new_data[CONF_GROUP_TYPE] = "sensor"
|
||||
new_data[CONF_HIDE_MEMBERS] = False
|
||||
new_data[CONF_IGNORE_NON_NUMERIC] = False
|
||||
|
||||
return self.async_create_entry(data=new_data)
|
||||
|
||||
@callback
|
||||
@override
|
||||
def async_config_entry_title(self, options: Mapping[str, Any]) -> str:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"config": {
|
||||
"abort": {
|
||||
"migrated_to_groups": "The min/max integration has been migrated to use groups. Please use the group integration instead."
|
||||
"migrated_to_groups": "The min/max integration has been migrated to use group sensors. Please use the group integration instead."
|
||||
},
|
||||
"step": {
|
||||
"user": {
|
||||
|
||||
Reference in New Issue
Block a user