diff --git a/homeassistant/components/openevse/config_flow.py b/homeassistant/components/openevse/config_flow.py index 866501d8235..cac86123254 100644 --- a/homeassistant/components/openevse/config_flow.py +++ b/homeassistant/components/openevse/config_flow.py @@ -8,12 +8,18 @@ from openevsehttp.exceptions import AuthenticationError, MissingSerial import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult -from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_USERNAME +from homeassistant.const import ( + CONF_HOST, + CONF_ID, + CONF_NAME, + CONF_PASSWORD, + CONF_USERNAME, +) from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.service_info import zeroconf -from .const import CONF_ID, CONF_SERIAL, DOMAIN +from .const import CONF_SERIAL, DOMAIN USER_SCHEMA = vol.Schema({vol.Required(CONF_HOST): cv.string}) diff --git a/homeassistant/components/openevse/const.py b/homeassistant/components/openevse/const.py index 392a2eb5064..b9381f21e12 100644 --- a/homeassistant/components/openevse/const.py +++ b/homeassistant/components/openevse/const.py @@ -1,7 +1,5 @@ """Constants for the OpenEVSE integration.""" -# pylint: disable-next=home-assistant-duplicate-const -CONF_ID = "id" CONF_SERIAL = "serial" DOMAIN = "openevse" INTEGRATION_TITLE = "OpenEVSE"