Remove platform YAML from Qnap (#103377)
This commit is contained in:
parent
b9b986dc8d
commit
d078a4396c
3 changed files with 2 additions and 111 deletions
|
@ -11,7 +11,6 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_MONITORED_CONDITIONS,
|
||||
CONF_PASSWORD,
|
||||
CONF_PORT,
|
||||
CONF_SSL,
|
||||
|
@ -22,9 +21,6 @@ from homeassistant.data_entry_flow import FlowResult
|
|||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
from .const import (
|
||||
CONF_DRIVES,
|
||||
CONF_NICS,
|
||||
CONF_VOLUMES,
|
||||
DEFAULT_PORT,
|
||||
DEFAULT_SSL,
|
||||
DEFAULT_TIMEOUT,
|
||||
|
@ -51,14 +47,6 @@ class QnapConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
|
||||
VERSION = 1
|
||||
|
||||
async def async_step_import(self, import_info: dict[str, Any]) -> FlowResult:
|
||||
"""Set the config entry up from yaml."""
|
||||
import_info.pop(CONF_MONITORED_CONDITIONS, None)
|
||||
import_info.pop(CONF_NICS, None)
|
||||
import_info.pop(CONF_DRIVES, None)
|
||||
import_info.pop(CONF_VOLUMES, None)
|
||||
return await self.async_step_user(import_info)
|
||||
|
||||
async def async_step_user(
|
||||
self,
|
||||
user_input: dict[str, Any] | None = None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue