This commit is contained in:
G Johansson
2026-10-05 16:33:02 +00:00
parent 05060d1725
commit aa31298d5e
2 changed files with 1 additions and 9 deletions
@@ -49,10 +49,7 @@ class MigrateToGroupSensorFlow(RepairsFlow):
config = dict(self.entry.options)
config[CONF_ENTITIES] = config.pop(CONF_ENTITY_IDS)
config.pop(CONF_ROUND_DIGITS)
# Set group sensor defaults
config[CONF_HIDE_MEMBERS] = False
# config[CONF_IGNORE_NON_NUMERIC] = False
# config[CONF_GROUP_TYPE] = SENSOR_DOMAIN
config["old_config_entry_id"] = self.entry.entry_id
import_result = await self.hass.config_entries.flow.async_init(
+1 -6
View File
@@ -189,7 +189,7 @@ async def test_migrate_helper_broken_config(
hass_client: ClientSessionGenerator,
hass_ws_client: WebSocketGenerator,
) -> None:
"""Test migrating to group sensors with manually removed helper."""
"""Test migrating to group sensors with broken config."""
assert await async_setup_component(hass, "repairs", {})
hass.states.async_set("sensor.input_one", "10")
hass.states.async_set("switch.input_two", "20")
@@ -260,12 +260,7 @@ async def test_migrate_helper_broken_config(
async def test_issue_is_deleted_on_removal(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
issue_registry: ir.IssueRegistry,
freezer: FrozenDateTimeFactory,
snapshot: SnapshotAssertion,
hass_client: ClientSessionGenerator,
hass_ws_client: WebSocketGenerator,
) -> None:
"""Test issue is removed on config entry removal."""
assert await async_setup_component(hass, "repairs", {})