Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.co2signal.helpers Namespace Reference

Functions

CarbonIntensityResponse fetch_latest_carbon_intensity (HomeAssistant hass, ElectricityMaps em, Mapping[str, Any] config)
 

Detailed Description

Helper functions for the CO2 Signal integration.

Function Documentation

◆ fetch_latest_carbon_intensity()

CarbonIntensityResponse homeassistant.components.co2signal.helpers.fetch_latest_carbon_intensity ( HomeAssistant  hass,
ElectricityMaps  em,
Mapping[str, Any]  config 
)
Fetch the latest carbon intensity based on country code or location coordinates.

Definition at line 15 of file helpers.py.