Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.workday.binary_sensor Namespace Reference

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
 

Detailed Description

Sensor to indicate whether the current day is a workday.

Function Documentation

◆ _get_obj_holidays()

HolidayBase homeassistant.components.workday.binary_sensor._get_obj_holidays ( str | None  country,
str | None  province,
int  year,
str | None  language,
list[str] | None  categories 
)
private
Get the object for the requested country and year.

Definition at line 73 of file binary_sensor.py.

◆ async_setup_entry()

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.

◆ validate_dates()

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.

Variable Documentation

◆ Final

homeassistant.components.workday.binary_sensor.Final

Definition at line 49 of file binary_sensor.py.