Deduplicate constants E-Z (#105657)

This commit is contained in:
Joost Lekkerkerker 2023-12-13 17:05:37 +01:00 committed by GitHub
parent bbfffbb47e
commit a82410d5e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
102 changed files with 193 additions and 258 deletions

View file

@ -13,7 +13,7 @@ from homeassistant.components.sensor import (
SensorEntity,
)
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import CONF_NAME
from homeassistant.const import CONF_NAME, CONF_STOP
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_platform import AddEntitiesCallback
@ -22,7 +22,7 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.util.dt import utc_from_timestamp
from .const import CONF_AGENCY, CONF_ROUTE, CONF_STOP, DOMAIN
from .const import CONF_AGENCY, CONF_ROUTE, DOMAIN
from .coordinator import NextBusDataUpdateCoordinator
from .util import listify, maybe_first