Migrate Axis, deCONZ and UniFi to use config entry subclass (#26173)
* Use init_subclass for Config Entries * Pylint cant handle subclass being the only user of imports
This commit is contained in:
parent
a80d26f0dc
commit
6102eb9f1c
3 changed files with 4 additions and 7 deletions
|
@ -56,8 +56,7 @@ def configured_devices(hass):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@config_entries.HANDLERS.register(DOMAIN)
|
class AxisFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
class AxisFlowHandler(config_entries.ConfigFlow):
|
|
||||||
"""Handle a Axis config flow."""
|
"""Handle a Axis config flow."""
|
||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
|
|
|
@ -43,8 +43,7 @@ def get_master_gateway(hass):
|
||||||
return gateway
|
return gateway
|
||||||
|
|
||||||
|
|
||||||
@config_entries.HANDLERS.register(DOMAIN)
|
class DeconzFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
class DeconzFlowHandler(config_entries.ConfigFlow):
|
|
||||||
"""Handle a deCONZ config flow."""
|
"""Handle a deCONZ config flow."""
|
||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
|
|
|
@ -11,7 +11,7 @@ from homeassistant.const import (
|
||||||
CONF_VERIFY_SSL,
|
CONF_VERIFY_SSL,
|
||||||
)
|
)
|
||||||
|
|
||||||
from .const import (
|
from .const import ( # pylint: disable=unused-import
|
||||||
CONF_CONTROLLER,
|
CONF_CONTROLLER,
|
||||||
CONF_TRACK_CLIENTS,
|
CONF_TRACK_CLIENTS,
|
||||||
CONF_TRACK_DEVICES,
|
CONF_TRACK_DEVICES,
|
||||||
|
@ -33,8 +33,7 @@ DEFAULT_SITE_ID = "default"
|
||||||
DEFAULT_VERIFY_SSL = False
|
DEFAULT_VERIFY_SSL = False
|
||||||
|
|
||||||
|
|
||||||
@config_entries.HANDLERS.register(DOMAIN)
|
class UnifiFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
class UnifiFlowHandler(config_entries.ConfigFlow):
|
|
||||||
"""Handle a UniFi config flow."""
|
"""Handle a UniFi config flow."""
|
||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue