Namespaces | |
| const | |
Classes | |
| class | Schedule |
| class | ScheduleStorageCollection |
Functions | |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| Any | deserialize_to_time (Any value) |
| Any | serialize_to_time (Any value) |
| list[dict[str, str]] | valid_schedule (list[dict[str, str]] schedule) |
Variables | |
| CONFIG_SCHEMA | |
| CUSTOM_DATA_SCHEMA = vol.Schema({str: vol.Any(bool, str, int, float)}) | |
| day | |
| default | |
| ENTITY_SCHEMA | |
| STORAGE_SCHEMA | |
| STORAGE_TIME_RANGE_SCHEMA | |
| int | STORAGE_VERSION = 1 |
| int | STORAGE_VERSION_MINOR = 1 |
| VolDictType | |
Support for schedules in Home Assistant.
| bool homeassistant.components.schedule.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up a schedule.
Definition at line 159 of file __init__.py.
| Any homeassistant.components.schedule.deserialize_to_time | ( | Any | value | ) |
Convert 24:00 and 24:00:00 to time.max.
Definition at line 84 of file __init__.py.
| Any homeassistant.components.schedule.serialize_to_time | ( | Any | value | ) |
Convert time.max to 24:00:00.
Definition at line 101 of file __init__.py.
| list[dict[str, str]] homeassistant.components.schedule.valid_schedule | ( | list[dict[str, str]] | schedule | ) |
Validate the schedule of time ranges. Ensure they have no overlap and the end time is greater than the start time.
Definition at line 54 of file __init__.py.
| homeassistant.components.schedule.CONFIG_SCHEMA |
Definition at line 145 of file __init__.py.
| homeassistant.components.schedule.CUSTOM_DATA_SCHEMA = vol.Schema({str: vol.Any(bool, str, int, float)}) |
Definition at line 114 of file __init__.py.
| homeassistant.components.schedule.day |
Definition at line 132 of file __init__.py.
| homeassistant.components.schedule.default |
Definition at line 132 of file __init__.py.
| homeassistant.components.schedule.ENTITY_SCHEMA |
Definition at line 154 of file __init__.py.
| homeassistant.components.schedule.STORAGE_SCHEMA |
Definition at line 150 of file __init__.py.
| homeassistant.components.schedule.STORAGE_TIME_RANGE_SCHEMA |
Definition at line 123 of file __init__.py.
| int homeassistant.components.schedule.STORAGE_VERSION = 1 |
Definition at line 50 of file __init__.py.
| int homeassistant.components.schedule.STORAGE_VERSION_MINOR = 1 |
Definition at line 51 of file __init__.py.
| homeassistant.components.schedule.VolDictType |
Definition at line 116 of file __init__.py.