Skip to content

Commit 49ca754

Browse files
committed
fix job run error - Replace a List with Tuple
1 parent 05f595f commit 49ca754

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

adafruit_sgp30.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,22 @@ def H2(self) -> int:
137137
def iaq_init(self) -> List[int]:
138138
"""Initialize the IAQ algorithm"""
139139
# name, command, signals, delay
140-
self._run_profile(["iaq_init", [0x20, 0x03], 0, 0.01])
140+
self._run_profile(("iaq_init", [0x20, 0x03], 0, 0.01))
141141

142142
def iaq_measure(self) -> List[int]:
143143
"""Measure the eCO2 and TVOC"""
144144
# name, command, signals, delay
145-
return self._run_profile(["iaq_measure", [0x20, 0x08], 2, 0.05])
145+
return self._run_profile(("iaq_measure", [0x20, 0x08], 2, 0.05))
146146

147147
def raw_measure(self) -> List[int]:
148148
"""Measure H2 and Ethanol (Raw Signals)"""
149149
# name, command, signals, delay
150-
return self._run_profile(["raw_measure", [0x20, 0x50], 2, 0.025])
150+
return self._run_profile(("raw_measure", [0x20, 0x50], 2, 0.025))
151151

152152
def get_iaq_baseline(self) -> List[int]:
153153
"""Retreive the IAQ algorithm baseline for eCO2 and TVOC"""
154154
# name, command, signals, delay
155-
return self._run_profile(["iaq_get_baseline", [0x20, 0x15], 2, 0.01])
155+
return self._run_profile(("iaq_get_baseline", [0x20, 0x15], 2, 0.01))
156156

157157
def set_iaq_baseline( # pylint: disable=invalid-name
158158
self, eCO2: int, TVOC: int
@@ -165,7 +165,7 @@ def set_iaq_baseline( # pylint: disable=invalid-name
165165
arr = [value >> 8, value & 0xFF]
166166
arr.append(self._generate_crc(arr))
167167
buffer += arr
168-
self._run_profile(["iaq_set_baseline", [0x20, 0x1E] + buffer, 0, 0.01])
168+
self._run_profile(("iaq_set_baseline", [0x20, 0x1E] + buffer, 0, 0.01))
169169

170170
def set_iaq_humidity(self, gramsPM3: float) -> None: # pylint: disable=invalid-name
171171
"""Set the humidity in g/m3 for eCO2 and TVOC compensation algorithm"""
@@ -175,7 +175,7 @@ def set_iaq_humidity(self, gramsPM3: float) -> None: # pylint: disable=invalid-
175175
arr = [value >> 8, value & 0xFF]
176176
arr.append(self._generate_crc(arr))
177177
buffer += arr
178-
self._run_profile(["iaq_set_humidity", [0x20, 0x61] + buffer, 0, 0.01])
178+
self._run_profile(("iaq_set_humidity", [0x20, 0x61] + buffer, 0, 0.01))
179179

180180
def set_iaq_relative_humidity(self, celsius: float, relative_humidity: float):
181181
"""

0 commit comments

Comments
 (0)