Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.ecobee.util Namespace Reference

Functions

def ecobee_date (date_string)
 
def ecobee_time (time_string)
 
bool is_indefinite_hold (str start_date_string, str end_date_string)
 

Detailed Description

Validation utility functions for ecobee services.

Function Documentation

◆ ecobee_date()

def homeassistant.components.ecobee.util.ecobee_date (   date_string)
Validate a date_string as valid for the ecobee API.

Definition at line 8 of file util.py.

◆ ecobee_time()

def homeassistant.components.ecobee.util.ecobee_time (   time_string)
Validate a time_string as valid for the ecobee API.

Definition at line 17 of file util.py.

◆ is_indefinite_hold()

bool homeassistant.components.ecobee.util.is_indefinite_hold ( str  start_date_string,
str  end_date_string 
)
Determine if the given start and end dates from the ecobee API represent an indefinite hold.

This is not documented in the API, so a rough heuristic is used where a hold over 1 year is considered indefinite.

Definition at line 28 of file util.py.