mirror of
https://github.com/home-assistant/core.git
synced 2026-10-01 08:33:35 +01:00
18 lines
434 B
Python
18 lines
434 B
Python
"""Provides the constants needed for the component."""
|
|
|
|
from typing import TYPE_CHECKING, Final
|
|
|
|
from homeassistant.util.hass_dict import HassKey
|
|
|
|
if TYPE_CHECKING:
|
|
from homeassistant.helpers.entity_component import EntityComponent
|
|
|
|
from . import DateTimeEntity
|
|
|
|
DOMAIN: Final = "datetime"
|
|
DATA_COMPONENT: HassKey[EntityComponent[DateTimeEntity]] = HassKey(DOMAIN)
|
|
|
|
ATTR_DATETIME = "datetime"
|
|
|
|
SERVICE_SET_VALUE = "set_value"
|