UniFi simplify update (#24304)
This commit is contained in:
parent
aa8ddeca34
commit
e9b0f54a43
7 changed files with 90 additions and 134 deletions
|
@ -5,8 +5,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import (
|
||||
CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_USERNAME, CONF_VERIFY_SSL)
|
||||
|
||||
from .const import (CONF_CONTROLLER, CONF_POE_CONTROL, CONF_SITE_ID,
|
||||
DOMAIN, LOGGER)
|
||||
from .const import CONF_CONTROLLER, CONF_SITE_ID, DOMAIN, LOGGER
|
||||
from .controller import get_controller
|
||||
from .errors import (
|
||||
AlreadyConfigured, AuthenticationRequired, CannotConnect, UserLevel)
|
||||
|
@ -99,8 +98,7 @@ class UnifiFlowHandler(config_entries.ConfigFlow):
|
|||
raise AlreadyConfigured
|
||||
|
||||
data = {
|
||||
CONF_CONTROLLER: self.config,
|
||||
CONF_POE_CONTROL: True
|
||||
CONF_CONTROLLER: self.config
|
||||
}
|
||||
|
||||
return self.async_create_entry(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue