Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.home_connect.time Namespace Reference

Classes

class  HomeConnectTimeEntity
 

Functions

None async_setup_entry (HomeAssistant hass, HomeConnectConfigEntry entry, AddEntitiesCallback async_add_entities)
 
time seconds_to_time (int seconds)
 
int time_to_seconds (time t)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple TIME_ENTITIES
 

Detailed Description

Provides time enties for Home Connect.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.home_connect.time.async_setup_entry ( HomeAssistant  hass,
HomeConnectConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Home Connect switch.

Definition at line 34 of file time.py.

◆ seconds_to_time()

time homeassistant.components.home_connect.time.seconds_to_time ( int  seconds)
Convert seconds to a time object.

Definition at line 53 of file time.py.

◆ time_to_seconds()

int homeassistant.components.home_connect.time.time_to_seconds ( time  t)
Convert a time object to seconds.

Definition at line 60 of file time.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.home_connect.time._LOGGER = logging.getLogger(__name__)
private

Definition at line 23 of file time.py.

◆ TIME_ENTITIES

tuple homeassistant.components.home_connect.time.TIME_ENTITIES
Initial value:
1 = (
2  TimeEntityDescription(
3  key="BSH.Common.Setting.AlarmClock",
4  translation_key="alarm_clock",
5  ),
6 )

Definition at line 26 of file time.py.