Skip to content

Commit ed8180c

Browse files
committed
merge main, add type info on new functions
1 parent 07617b7 commit ed8180c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_scd4x.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ def relative_humidity(self) -> float:
149149
self._read_data()
150150
return self._relative_humidity
151151

152-
def measure_single_shot(self):
152+
def measure_single_shot(self) -> None:
153153
"""On-demand measurement of CO2 concentration, relative humidity, and
154154
temperature for SCD41 only"""
155155
self._send_command(_SCD4X_MEASURESINGLESHOT, cmd_delay=5)
156156

157-
def measure_single_shot_rht_only(self):
157+
def measure_single_shot_rht_only(self) -> None:
158158
"""On-demand measurement of relative humidity and temperature for
159159
SCD41 only"""
160160
self._send_command(_SCD4X_MEASURESINGLESHOTRHTONLY, cmd_delay=0.05)

0 commit comments

Comments
 (0)