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

Classes

class  AirNowEntityDescription
 
class  AirNowSensor
 

Functions

dict[str, Any] aqi_extra_attrs (dict[str, Any] data)
 
None async_setup_entry (HomeAssistant hass, AirNowConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
dict[str, Any] station_extra_attrs (dict[str, Any] data)
 

Variables

string ATTR_DESCR = "description"
 
string ATTR_LEVEL = "level"
 
string ATTR_STATION = "reporting_station"
 
string ATTRIBUTION = "Data provided by AirNow"
 
int PARALLEL_UPDATES = 1
 

Detailed Description

Support for the AirNow sensor service.

Function Documentation

◆ aqi_extra_attrs()

dict[str, Any] homeassistant.components.airnow.sensor.aqi_extra_attrs ( dict[str, Any]  data)
Process extra attributes for main AQI sensor.

Definition at line 74 of file sensor.py.

◆ async_setup_entry()

None homeassistant.components.airnow.sensor.async_setup_entry ( HomeAssistant  hass,
AirNowConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up AirNow sensor entities based on a config entry.

Definition at line 130 of file sensor.py.

◆ station_extra_attrs()

dict[str, Any] homeassistant.components.airnow.sensor.station_extra_attrs ( dict[str, Any]  data)
Process extra attributes for station location (if available).

Definition at line 64 of file sensor.py.

Variable Documentation

◆ ATTR_DESCR

string homeassistant.components.airnow.sensor.ATTR_DESCR = "description"

Definition at line 51 of file sensor.py.

◆ ATTR_LEVEL

string homeassistant.components.airnow.sensor.ATTR_LEVEL = "level"

Definition at line 52 of file sensor.py.

◆ ATTR_STATION

string homeassistant.components.airnow.sensor.ATTR_STATION = "reporting_station"

Definition at line 53 of file sensor.py.

◆ ATTRIBUTION

string homeassistant.components.airnow.sensor.ATTRIBUTION = "Data provided by AirNow"

Definition at line 47 of file sensor.py.

◆ PARALLEL_UPDATES

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

Definition at line 49 of file sensor.py.