Home Assistant Unofficial Reference 2024.12.1
util.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.ista_ecotrend.util.IstaConsumptionType
 
class  homeassistant.components.ista_ecotrend.util.IstaValueType
 

Namespaces

 homeassistant.components.ista_ecotrend.util
 

Functions

float|int|None homeassistant.components.ista_ecotrend.util.as_number (str|float|None value)
 
list[dict[str, Any]] homeassistant.components.ista_ecotrend.util.get_consumptions (dict[str, Any] data, IstaValueType|None value_type=None)
 
int|float|None homeassistant.components.ista_ecotrend.util.get_native_value (data, IstaConsumptionType consumption_type, IstaValueType|None value_type=None)
 
list[dict[str, Any]]|None homeassistant.components.ista_ecotrend.util.get_statistics (data, IstaConsumptionType consumption_type, IstaValueType|None value_type=None)
 
dict[str, Any] homeassistant.components.ista_ecotrend.util.get_values_by_type (dict[str, Any] consumptions, IstaConsumptionType consumption_type)
 
datetime.datetime homeassistant.components.ista_ecotrend.util.last_day_of_month (int month, int year)