Fix lacrosse view sensor units (#106203)
Fixed Unit values from sensor.py There was a mistake on the units from the sensor that where messing up the device readings on rain, windchill and feels like sensors
This commit is contained in:
parent
c4c422de79
commit
69f8514556
1 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ SENSOR_DESCRIPTIONS = {
|
||||||
key="Rain",
|
key="Rain",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
value_fn=get_value,
|
value_fn=get_value,
|
||||||
native_unit_of_measurement=UnitOfPrecipitationDepth.INCHES,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
device_class=SensorDeviceClass.PRECIPITATION,
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
"WindHeading": LaCrosseSensorEntityDescription(
|
"WindHeading": LaCrosseSensorEntityDescription(
|
||||||
|
@ -130,7 +130,7 @@ SENSOR_DESCRIPTIONS = {
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
value_fn=get_value,
|
value_fn=get_value,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
|
||||||
),
|
),
|
||||||
"WindChill": LaCrosseSensorEntityDescription(
|
"WindChill": LaCrosseSensorEntityDescription(
|
||||||
key="WindChill",
|
key="WindChill",
|
||||||
|
@ -138,7 +138,7 @@ SENSOR_DESCRIPTIONS = {
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
value_fn=get_value,
|
value_fn=get_value,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue