mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
Mods
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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", {})
|
||||
|
||||
Reference in New Issue
Block a user