Fix pylint

This commit is contained in:
G Johansson
2026-10-05 16:33:01 +00:00
parent 8e3a56fb2a
commit 9e97e2e149
+8 -4
View File
@@ -9,11 +9,15 @@ from homeassistant.components.group import (
CONF_HIDE_MEMBERS,
DOMAIN as GROUP_DOMAIN,
)
from homeassistant.components.repairs import ConfirmRepairFlow, RepairsFlow
from homeassistant.components.repairs import (
ConfirmRepairFlow,
RepairsFlow,
RepairsFlowResult,
)
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResult, FlowResultType
from homeassistant.data_entry_flow import FlowResultType
from homeassistant.helpers import entity_registry as er
from .const import CONF_ENTITY_IDS, CONF_ROUND_DIGITS, DOMAIN
@@ -29,13 +33,13 @@ class MigrateToGroupSensorFlow(RepairsFlow):
async def async_step_init(
self, user_input: dict[str, str] | None = None
) -> FlowResult:
) -> RepairsFlowResult:
"""Handle the first step of a fix flow."""
return await self.async_step_migrate()
async def async_step_migrate(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
) -> RepairsFlowResult:
"""Handle the migration step of a fix flow."""
entity_reg = er.async_get(self.hass)
old_entity = entity_reg.async_get_entity_id(