Remove deprecated YAML configuration from CPU Speed (#67166)

This commit is contained in:
Franck Nijhof 2022-02-24 11:25:42 +01:00 committed by GitHub
parent 85b87ffb8b
commit 14059c5aa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 82 deletions

View file

@ -6,7 +6,6 @@ from typing import Any
from cpuinfo import cpuinfo
from homeassistant.config_entries import ConfigFlow
from homeassistant.const import CONF_NAME
from homeassistant.data_entry_flow import FlowResult
from .const import DOMAIN
@ -36,8 +35,3 @@ class CPUSpeedFlowHandler(ConfigFlow, domain=DOMAIN):
title=self._imported_name or "CPU Speed",
data={},
)
async def async_step_import(self, config: dict[str, Any]) -> FlowResult:
"""Handle a flow initialized by importing a config."""
self._imported_name = config.get(CONF_NAME)
return await self.async_step_user(user_input={})