Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.date Namespace Reference

Namespaces

 const
 

Classes

class  DateEntity
 
class  DateEntityDescription
 

Functions

None _async_set_value (DateEntity entity, ServiceCall service_call)
 
bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

list __all__ = ["DOMAIN", "DateEntity", "DateEntityDescription"]
 
 _LOGGER = logging.getLogger(__name__)
 
dictionary CACHED_PROPERTIES_WITH_ATTR_ = {"native_value"}
 
string ENTITY_ID_FORMAT = DOMAIN + ".{}"
 
 PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA
 
 PLATFORM_SCHEMA_BASE = cv.PLATFORM_SCHEMA_BASE
 
 SCAN_INTERVAL = timedelta(seconds=30)
 

Detailed Description

Component to allow setting date as platforms.

Function Documentation

◆ _async_set_value()

None homeassistant.components.date._async_set_value ( DateEntity  entity,
ServiceCall  service_call 
)
private
Service call wrapper to set a new date.

Definition at line 35 of file __init__.py.

◆ async_setup()

bool homeassistant.components.date.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up Date entities.

Definition at line 40 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.date.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up a config entry.

Definition at line 54 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.date.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 59 of file __init__.py.

Variable Documentation

◆ __all__

list homeassistant.components.date.__all__ = ["DOMAIN", "DateEntity", "DateEntityDescription"]
private

Definition at line 32 of file __init__.py.

◆ _LOGGER

homeassistant.components.date._LOGGER = logging.getLogger(__name__)
private

Definition at line 23 of file __init__.py.

◆ CACHED_PROPERTIES_WITH_ATTR_

dictionary homeassistant.components.date.CACHED_PROPERTIES_WITH_ATTR_ = {"native_value"}

Definition at line 68 of file __init__.py.

◆ ENTITY_ID_FORMAT

string homeassistant.components.date.ENTITY_ID_FORMAT = DOMAIN + ".{}"

Definition at line 26 of file __init__.py.

◆ PLATFORM_SCHEMA

homeassistant.components.date.PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA

Definition at line 27 of file __init__.py.

◆ PLATFORM_SCHEMA_BASE

homeassistant.components.date.PLATFORM_SCHEMA_BASE = cv.PLATFORM_SCHEMA_BASE

Definition at line 28 of file __init__.py.

◆ SCAN_INTERVAL

homeassistant.components.date.SCAN_INTERVAL = timedelta(seconds=30)

Definition at line 29 of file __init__.py.