From ed8180c63783629b6ca75ce81e2575db8ea23a9a Mon Sep 17 00:00:00 2001 From: foamyguy Date: Sun, 30 Jul 2023 14:19:34 -0500 Subject: [PATCH] merge main, add type info on new functions --- adafruit_scd4x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_scd4x.py b/adafruit_scd4x.py index b331af7..6d33c87 100644 --- a/adafruit_scd4x.py +++ b/adafruit_scd4x.py @@ -149,12 +149,12 @@ def relative_humidity(self) -> float: self._read_data() return self._relative_humidity - def measure_single_shot(self): + def measure_single_shot(self) -> None: """On-demand measurement of CO2 concentration, relative humidity, and temperature for SCD41 only""" self._send_command(_SCD4X_MEASURESINGLESHOT, cmd_delay=5) - def measure_single_shot_rht_only(self): + def measure_single_shot_rht_only(self) -> None: """On-demand measurement of relative humidity and temperature for SCD41 only""" self._send_command(_SCD4X_MEASURESINGLESHOTRHTONLY, cmd_delay=0.05)