Address feedback to Overkiz integration (round 2) (#63036)
* Address feedback in multiple files * Add missing return statement * Improve sensor descriptions * Improve typing * Move to new device registry * Disable RSSI sensor by default * Improve typing
This commit is contained in:
parent
52ca06c750
commit
8599ddf51e
11 changed files with 30 additions and 33 deletions
|
@ -19,6 +19,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.components import dhcp
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.data_entry_flow import FlowResult
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import CONF_HUB, DEFAULT_HUB, DOMAIN
|
||||
|
||||
|
@ -35,9 +36,13 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
username = user_input[CONF_USERNAME]
|
||||
password = user_input[CONF_PASSWORD]
|
||||
server = SUPPORTED_SERVERS[user_input[CONF_HUB]]
|
||||
session = async_get_clientsession(self.hass)
|
||||
|
||||
async with OverkizClient(
|
||||
username=username, password=password, server=server
|
||||
username=username,
|
||||
password=password,
|
||||
server=server,
|
||||
session=session,
|
||||
) as client:
|
||||
await client.login()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue