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

Classes

class  ElecPriceSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary _PRICE_SENSOR_ATTRIBUTES_MAP
 
int PARALLEL_UPDATES = 1
 

Detailed Description

Sensor to collect the reference daily prices of electricity ('PVPC') in Spain.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.pvpc_hourly_pricing.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the electricity price sensor from config_entry.

Definition at line 150 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.pvpc_hourly_pricing.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 30 of file sensor.py.

◆ _PRICE_SENSOR_ATTRIBUTES_MAP

dictionary homeassistant.components.pvpc_hourly_pricing.sensor._PRICE_SENSOR_ATTRIBUTES_MAP
private

Definition at line 68 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.pvpc_hourly_pricing.sensor.PARALLEL_UPDATES = 1

Definition at line 31 of file sensor.py.