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

Classes

class  BaseTomorrowioSensorEntity
 
class  TomorrowioSensorEntity
 
class  TomorrowioSensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
Callable[[float], float] convert_ppb_to_ugm3 (float molecular_weight)
 
float handle_conversion (float value, Callable[[float], float]|float conversion)
 

Variables

tuple SENSOR_TYPES
 

Detailed Description

Sensor component that handles additional Tomorrowio data for your location.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tomorrowio.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up a config entry.

Definition at line 328 of file sensor.py.

◆ convert_ppb_to_ugm3()

Callable[[float], float] homeassistant.components.tomorrowio.sensor.convert_ppb_to_ugm3 ( float  molecular_weight)
Return function to convert ppb to ug/m^3.

Definition at line 104 of file sensor.py.

◆ handle_conversion()

float homeassistant.components.tomorrowio.sensor.handle_conversion ( float  value,
Callable[[float], float] | float   conversion 
)
Handle conversion of a value based on conversion type.

Definition at line 342 of file sensor.py.

Variable Documentation

◆ SENSOR_TYPES

tuple homeassistant.components.tomorrowio.sensor.SENSOR_TYPES

Definition at line 109 of file sensor.py.