Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions custom_components/tech/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
"""Config flow for Tech Sterowniki integration."""

import logging
import uuid
from types import MappingProxyType
from typing import Any
import uuid

import voluptuous as vol

from homeassistant import config_entries, core, exceptions
from homeassistant.config_entries import SOURCE_USER, ConfigEntry, ConfigFlowResult
from homeassistant.const import (
ATTR_ID,
CONF_NAME,
CONF_PASSWORD,
CONF_TOKEN,
CONF_USERNAME,
)
from homeassistant.helpers import aiohttp_client, config_validation as cv
from homeassistant.config_entries import (SOURCE_USER, ConfigEntry,
ConfigFlowResult)
from homeassistant.const import (ATTR_ID, CONF_NAME, CONF_PASSWORD, CONF_TOKEN,
CONF_USERNAME)
from homeassistant.helpers import aiohttp_client
from homeassistant.helpers import config_validation as cv

from . import assets
from .const import (
CONTROLLER,
CONTROLLERS,
DOMAIN,
INCLUDE_HUB_IN_NAME,
UDID,
USER_ID,
VER,
)
from .const import (CONTROLLER, CONTROLLERS, DOMAIN, INCLUDE_HUB_IN_NAME, UDID,
USER_ID, VER)
from .tech import Tech, TechError, TechLoginError

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -226,6 +215,7 @@ def _create_config_entry(self, controller: dict) -> ConfigEntry:
source=SOURCE_USER,
options={},
unique_id=None,
subentries_data=[],
)

def _create_controllers_array(self, validated_input: dict[str, Any]) -> list[dict]:
Expand Down
Loading