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

Classes

class  NumberEntity
 
class  StringEntity
 

Functions

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

Variables

dictionary UOM_MAP
 
dictionary UOM_TO_DEVICE_CLASS_MAP
 

Detailed Description

Sensor platform support for wiffi devices.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.wiffi.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up platform for a new integration.

Called by the HA framework after async_forward_entry_setups has been called
during initialization of a new integration (= wiffi).

Definition at line 41 of file sensor.py.

Variable Documentation

◆ UOM_MAP

dictionary homeassistant.components.wiffi.sensor.UOM_MAP
Initial value:
1 = {
2  WIFFI_UOM_DEGREE: DEGREE,
3  WIFFI_UOM_TEMP_CELSIUS: UnitOfTemperature.CELSIUS,
4  WIFFI_UOM_MILLI_BAR: UnitOfPressure.MBAR,
5  WIFFI_UOM_LUX: LIGHT_LUX,
6 }

Definition at line 33 of file sensor.py.

◆ UOM_TO_DEVICE_CLASS_MAP

dictionary homeassistant.components.wiffi.sensor.UOM_TO_DEVICE_CLASS_MAP
Initial value:
1 = {
2  WIFFI_UOM_TEMP_CELSIUS: SensorDeviceClass.TEMPERATURE,
3  WIFFI_UOM_PERCENT: SensorDeviceClass.HUMIDITY,
4  WIFFI_UOM_MILLI_BAR: SensorDeviceClass.PRESSURE,
5  WIFFI_UOM_LUX: SensorDeviceClass.ILLUMINANCE,
6 }

Definition at line 25 of file sensor.py.