mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix incorrect values for AirVisual Pro sensors (#84725)
This commit is contained in:
parent
03ca50f292
commit
580f2058a7
@ -159,6 +159,6 @@ class AirVisualProSensor(AirVisualProEntity, SensorEntity):
|
||||
elif self.entity_description.key == SENSOR_KIND_BATTERY_LEVEL:
|
||||
self._attr_native_value = self.status["battery"]
|
||||
else:
|
||||
self._attr_native_value = self.MEASUREMENTS_KEY_TO_VALUE[
|
||||
self.entity_description.key
|
||||
self._attr_native_value = self.measurements[
|
||||
self.MEASUREMENTS_KEY_TO_VALUE[self.entity_description.key]
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user