Skip to content

Commit baa7e06

Browse files
committed
Add relative_humidity property
1 parent 1940cb6 commit baa7e06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

adafruit_bme680.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ def pressure(self):
260260
calc_pres += (var1 + var2 + var3 + (self._pressure_calibration[6] * 128)) / 16
261261
return calc_pres / 100
262262

263+
@property
264+
def relative_humidity(self):
265+
"""The relative humidity in RH %"""
266+
return self.humidity
267+
263268
@property
264269
def humidity(self):
265270
"""The relative humidity in RH %"""

0 commit comments

Comments
 (0)