Skip to content

Commit 0095aba

Browse files
committed
Add relative_humidity property
1 parent 25c8977 commit 0095aba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

adafruit_bme280.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,14 @@ def pressure(self):
391391
return _BME280_PRESSURE_MAX_HPA
392392
return pressure
393393

394+
@property
395+
def relative_humidity(self):
396+
"""
397+
The relative humidity in RH %
398+
returns None if humidity measurement is disabled
399+
"""
400+
return self.humidity
401+
394402
@property
395403
def humidity(self):
396404
"""

0 commit comments

Comments
 (0)