File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,9 @@ def temperature(self) -> float:
204
204
return self ._t_fine / 5120.0
205
205
206
206
@property
207
- def pressure (self ) -> Optional [ float ] :
207
+ def pressure (self ) -> float :
208
208
"""
209
209
The compensated pressure in hectoPascals.
210
- returns None if pressure measurement is disabled
211
210
"""
212
211
self ._read_temperature ()
213
212
@@ -237,18 +236,16 @@ def pressure(self) -> Optional[float]:
237
236
return pressure
238
237
239
238
@property
240
- def relative_humidity (self ) -> Optional [ float ] :
239
+ def relative_humidity (self ) -> float :
241
240
"""
242
241
The relative humidity in RH %
243
- returns None if humidity measurement is disabled
244
242
"""
245
243
return self .humidity
246
244
247
245
@property
248
- def humidity (self ) -> Optional [ float ] :
246
+ def humidity (self ) -> float :
249
247
"""
250
248
The relative humidity in RH %
251
- returns None if humidity measurement is disabled
252
249
"""
253
250
self ._read_temperature ()
254
251
hum = self ._read_register (0xFD , 2 ) # BME280_REGISTER_HUMIDDATA
You can’t perform that action at this time.
0 commit comments