UniFi simplify update (#24304)

This commit is contained in:
Robert Svensson 2019-06-15 17:38:22 +02:00 committed by GitHub
parent aa8ddeca34
commit e9b0f54a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 90 additions and 134 deletions

View file

@ -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(