Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tado.helper Namespace Reference

Functions

None|int decide_duration (TadoConnector tado, int|None duration, int zone_id, str|None overlay_mode=None)
 
str decide_overlay_mode (TadoConnector tado, int|None duration, int zone_id, str|None overlay_mode=None)
 
def generate_supported_fanmodes (dict[str, str] tado_to_ha_mapping, list[str] options)
 

Detailed Description

Helper methods for Tado.

Function Documentation

◆ decide_duration()

None | int homeassistant.components.tado.helper.decide_duration ( TadoConnector  tado,
int | None  duration,
int  zone_id,
str | None   overlay_mode = None 
)
Return correct duration based on the selected overlay mode/duration and tado config.

Definition at line 34 of file helper.py.

◆ decide_overlay_mode()

str homeassistant.components.tado.helper.decide_overlay_mode ( TadoConnector  tado,
int | None  duration,
int  zone_id,
str | None   overlay_mode = None 
)
Return correct overlay mode based on the action and defaults.

Definition at line 11 of file helper.py.

◆ generate_supported_fanmodes()

def homeassistant.components.tado.helper.generate_supported_fanmodes ( dict[str, str]  tado_to_ha_mapping,
list[str]  options 
)
Return correct list of fan modes or None.

Definition at line 54 of file helper.py.