Stop using the domain as unique ID in CPU Speed config flow (#189662)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Joost Lekkerkerker
2026-10-31 09:47:40 -04:00
committed by GitHub
co-authored by Claude
parent 3e8d64ec62
commit e717ca7213
2 changed files with 1 additions and 3 deletions
@@ -21,8 +21,6 @@ class CPUSpeedFlowHandler(ConfigFlow, domain=DOMAIN):
self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle a flow initialized by the user."""
await self.async_set_unique_id(DOMAIN)
if user_input is None:
return self.async_show_form(step_id="user")
@@ -31,7 +31,7 @@ async def test_full_user_flow(
assert result2.get("type") is FlowResultType.CREATE_ENTRY
assert result2.get("title") == "CPU Speed"
assert result2.get("data") == {}
assert result2["result"].unique_id == DOMAIN
assert result2["result"].unique_id is None
assert len(mock_setup_entry.mock_calls) == 1
assert len(mock_cpuinfo_config_flow.mock_calls) == 1