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

Classes

class  LaCrosseSensorEntityDescription
 
class  LaCrosseViewSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 
float|int|str|None get_value (Sensor sensor, str field)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int PARALLEL_UPDATES = 0
 
dictionary SENSOR_DESCRIPTIONS
 
dictionary UNIT_OF_MEASUREMENT_MAP
 

Detailed Description

Sensor component for LaCrosse View.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.lacrosse_view.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up LaCrosse View from a config entry.

Definition at line 149 of file sensor.py.

◆ get_value()

float | int | str | None homeassistant.components.lacrosse_view.sensor.get_value ( Sensor  sensor,
str  field 
)
Get the value of a sensor field.

Definition at line 46 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.lacrosse_view.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 36 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.lacrosse_view.sensor.PARALLEL_UPDATES = 0

Definition at line 59 of file sensor.py.

◆ SENSOR_DESCRIPTIONS

dictionary homeassistant.components.lacrosse_view.sensor.SENSOR_DESCRIPTIONS

Definition at line 60 of file sensor.py.

◆ UNIT_OF_MEASUREMENT_MAP

dictionary homeassistant.components.lacrosse_view.sensor.UNIT_OF_MEASUREMENT_MAP
Initial value:
1 = {
2  "degrees_celsius": UnitOfTemperature.CELSIUS,
3  "degrees_fahrenheit": UnitOfTemperature.FAHRENHEIT,
4  "inches": UnitOfPrecipitationDepth.INCHES,
5  "millimeters": UnitOfPrecipitationDepth.MILLIMETERS,
6  "kilometers_per_hour": UnitOfSpeed.KILOMETERS_PER_HOUR,
7  "miles_per_hour": UnitOfSpeed.MILES_PER_HOUR,
8 }

Definition at line 139 of file sensor.py.