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

Classes

class  AwairSensor
 
class  AwairSensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, AwairConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

list DUST_ALIASES = [API_PM25, API_PM10]
 
 SENSOR_TYPE_SCORE
 

Detailed Description

Support for Awair sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.awair.sensor.async_setup_entry ( HomeAssistant  hass,
AwairConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Awair sensor entity based on a config entry.

Definition at line 133 of file sensor.py.

Variable Documentation

◆ DUST_ALIASES

list homeassistant.components.awair.sensor.DUST_ALIASES = [API_PM25, API_PM10]

Definition at line 51 of file sensor.py.

◆ SENSOR_TYPE_SCORE

homeassistant.components.awair.sensor.SENSOR_TYPE_SCORE
Initial value:
1 = AwairSensorEntityDescription(
2  key=API_SCORE,
3  native_unit_of_measurement=PERCENTAGE,
4  translation_key="score",
5  unique_id_tag="score", # matches legacy format
6  state_class=SensorStateClass.MEASUREMENT,
7 )

Definition at line 61 of file sensor.py.