Classes | |
| class | IsWorkdaySensor |
Functions | |
| HolidayBase | _get_obj_holidays (str|None country, str|None province, int year, str|None language, list[str]|None categories) |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities) |
| list[str] | validate_dates (list[str] holiday_list) |
Variables | |
| Final | |
Sensor to indicate whether the current day is a workday.
|
private |
Get the object for the requested country and year.
Definition at line 73 of file binary_sensor.py.
| None homeassistant.components.workday.binary_sensor.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Set up the Workday sensor.
Definition at line 111 of file binary_sensor.py.
| list[str] homeassistant.components.workday.binary_sensor.validate_dates | ( | list[str] | holiday_list | ) |
Validate and adds to list of dates to add or remove.
Definition at line 53 of file binary_sensor.py.
| homeassistant.components.workday.binary_sensor.Final |
Definition at line 49 of file binary_sensor.py.