217 files
This commit is contained in:
@@ -12,13 +12,15 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
|
||||
from custom_components.powercalc import DOMAIN
|
||||
from custom_components.powercalc.analytics.analytics import collect_analytics
|
||||
from custom_components.powercalc.const import DATA_ENTITY_TYPES, EntityType
|
||||
from custom_components.powercalc.const import DATA_ENTITY_TYPES, DOMAIN, EntityType
|
||||
|
||||
SIGNAL_CREATE_SELECT_ENTITIES = "powercalc_create_select_entities_{}"
|
||||
DATA_PENDING_SELECT_ENTITIES = "powercalc_pending_select_entities"
|
||||
|
||||
# The tariff select doesn't poll, so updates don't have to be serialized.
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
def _key(entry: ConfigEntry | None) -> str:
|
||||
return entry.entry_id if entry else ""
|
||||
|
||||
Reference in New Issue
Block a user