diff --git a/homeassistant/components/ambiclimate/config_flow.py b/homeassistant/components/ambiclimate/config_flow.py index 85504971489..a6dbe60a761 100644 --- a/homeassistant/components/ambiclimate/config_flow.py +++ b/homeassistant/components/ambiclimate/config_flow.py @@ -38,7 +38,7 @@ def register_flow_implementation(hass, client_id, client_secret): } -@config_entries.HANDLERS.register("ambiclimate") +@config_entries.HANDLERS.register(DOMAIN) class AmbiclimateFlowHandler(config_entries.ConfigFlow): """Handle a config flow.""" diff --git a/homeassistant/components/daikin/__init__.py b/homeassistant/components/daikin/__init__.py index d0bc109c082..092bbf8866d 100644 --- a/homeassistant/components/daikin/__init__.py +++ b/homeassistant/components/daikin/__init__.py @@ -16,12 +16,10 @@ from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC from homeassistant.helpers.typing import HomeAssistantType from homeassistant.util import Throttle -from .const import CONF_UUID, KEY_MAC, TIMEOUT +from .const import CONF_UUID, DOMAIN, KEY_MAC, TIMEOUT _LOGGER = logging.getLogger(__name__) -DOMAIN = "daikin" - PARALLEL_UPDATES = 0 MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60) diff --git a/homeassistant/components/daikin/config_flow.py b/homeassistant/components/daikin/config_flow.py index 155fdd18376..619f9c8d1d8 100644 --- a/homeassistant/components/daikin/config_flow.py +++ b/homeassistant/components/daikin/config_flow.py @@ -12,12 +12,12 @@ import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_API_KEY, CONF_HOST, CONF_PASSWORD -from .const import CONF_UUID, KEY_MAC, TIMEOUT +from .const import CONF_UUID, DOMAIN, KEY_MAC, TIMEOUT _LOGGER = logging.getLogger(__name__) -@config_entries.HANDLERS.register("daikin") +@config_entries.HANDLERS.register(DOMAIN) class FlowHandler(config_entries.ConfigFlow): """Handle a config flow.""" diff --git a/homeassistant/components/daikin/const.py b/homeassistant/components/daikin/const.py index 00bbbefd051..5b4bdd28331 100644 --- a/homeassistant/components/daikin/const.py +++ b/homeassistant/components/daikin/const.py @@ -14,6 +14,8 @@ from homeassistant.const import ( TEMP_CELSIUS, ) +DOMAIN = "daikin" + ATTR_TARGET_TEMPERATURE = "target_temperature" ATTR_INSIDE_TEMPERATURE = "inside_temperature" ATTR_OUTSIDE_TEMPERATURE = "outside_temperature" diff --git a/homeassistant/components/mqtt/config_flow.py b/homeassistant/components/mqtt/config_flow.py index e19aaecc3db..5e5b8c54cf2 100644 --- a/homeassistant/components/mqtt/config_flow.py +++ b/homeassistant/components/mqtt/config_flow.py @@ -27,11 +27,12 @@ from .const import ( DEFAULT_BIRTH, DEFAULT_DISCOVERY, DEFAULT_WILL, + DOMAIN, ) from .util import MQTT_WILL_BIRTH_SCHEMA -@config_entries.HANDLERS.register("mqtt") +@config_entries.HANDLERS.register(DOMAIN) class FlowHandler(config_entries.ConfigFlow): """Handle a config flow.""" diff --git a/homeassistant/components/point/config_flow.py b/homeassistant/components/point/config_flow.py index aaefc45bc9c..1f3cf2a751d 100644 --- a/homeassistant/components/point/config_flow.py +++ b/homeassistant/components/point/config_flow.py @@ -40,7 +40,7 @@ def register_flow_implementation(hass, domain, client_id, client_secret): } -@config_entries.HANDLERS.register("point") +@config_entries.HANDLERS.register(DOMAIN) class PointFlowHandler(config_entries.ConfigFlow): """Handle a config flow.""" diff --git a/homeassistant/components/tellduslive/config_flow.py b/homeassistant/components/tellduslive/config_flow.py index aabbf88ee1c..33a02cd1f16 100644 --- a/homeassistant/components/tellduslive/config_flow.py +++ b/homeassistant/components/tellduslive/config_flow.py @@ -29,7 +29,7 @@ KEY_TOKEN_SECRET = "token_secret" _LOGGER = logging.getLogger(__name__) -@config_entries.HANDLERS.register("tellduslive") +@config_entries.HANDLERS.register(DOMAIN) class FlowHandler(config_entries.ConfigFlow): """Handle a config flow.""" diff --git a/homeassistant/components/tradfri/config_flow.py b/homeassistant/components/tradfri/config_flow.py index 7947c3ad6de..e02ac69de36 100644 --- a/homeassistant/components/tradfri/config_flow.py +++ b/homeassistant/components/tradfri/config_flow.py @@ -15,6 +15,7 @@ from .const import ( CONF_IDENTITY, CONF_IMPORT_GROUPS, CONF_KEY, + DOMAIN, KEY_SECURITY_CODE, ) @@ -28,7 +29,7 @@ class AuthError(Exception): self.code = code -@config_entries.HANDLERS.register("tradfri") +@config_entries.HANDLERS.register(DOMAIN) class FlowHandler(config_entries.ConfigFlow): """Handle a config flow."""