Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.easyenergy.sensor Namespace Reference

Classes

class  EasyEnergySensorEntity
 
class  EasyEnergySensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 
float|None get_gas_price (EasyEnergyData data, int hours)
 

Detailed Description

Support for easyEnergy sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.easyenergy.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up easyEnergy sensors based on a config entry.

Definition at line 210 of file sensor.py.

◆ get_gas_price()

float | None homeassistant.components.easyenergy.sensor.get_gas_price ( EasyEnergyData  data,
int  hours 
)
Return the gas value.

Args:
    data: The data object.
    hours: The number of hours to add to the current time.

Returns:
    The gas market price value.

Definition at line 192 of file sensor.py.