1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-29 11:45:35 +01:00

Replace duplicate constants with homeassistant.const imports (#171675)

This commit is contained in:
Max Michels
2026-05-21 17:13:31 +02:00
committed by GitHub
parent b7adba559b
commit a8381e923a
3 changed files with 3 additions and 4 deletions
@@ -18,6 +18,7 @@ from tesla_fleet_api.exceptions import (
import voluptuous as vol
from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlowResult
from homeassistant.const import CONF_DOMAIN
from homeassistant.helpers import config_entry_oauth2_flow
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.selector import (
@@ -26,7 +27,7 @@ from homeassistant.helpers.selector import (
QrErrorCorrectionLevel,
)
from .const import CONF_DOMAIN, DOMAIN, LOGGER
from .const import DOMAIN, LOGGER
from .oauth import TeslaUserImplementation
@@ -7,8 +7,6 @@ from tesla_fleet_api.const import Scope
DOMAIN = "tesla_fleet"
# pylint: disable-next=home-assistant-duplicate-const
CONF_DOMAIN = "domain"
CONF_REFRESH_TOKEN = "refresh_token"
LOGGER = logging.getLogger(__package__)
@@ -19,12 +19,12 @@ from homeassistant.components.application_credentials import (
from homeassistant.components.tesla_fleet.config_flow import OAuth2FlowHandler
from homeassistant.components.tesla_fleet.const import (
AUTHORIZE_URL,
CONF_DOMAIN,
DOMAIN,
SCOPES,
TOKEN_URL,
)
from homeassistant.config_entries import SOURCE_USER
from homeassistant.const import CONF_DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
from homeassistant.helpers import config_entry_oauth2_flow