Skip to content

Commit 05f595f

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_sgp30.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from micropython import const
3131

3232
try:
33-
from typing import List
33+
from typing import List, Tuple
3434
from busio import I2C
3535
except ImportError:
3636
pass
@@ -193,7 +193,7 @@ def set_iaq_relative_humidity(self, celsius: float, relative_humidity: float):
193193

194194
# Low level command functions
195195

196-
def _run_profile(self, profile: List[str, List[int], int, float]) -> List[int]:
196+
def _run_profile(self, profile: Tuple[str, List[int], int, float]) -> List[int]:
197197
"""Run an SGP 'profile' which is a named command set"""
198198
# pylint: disable=unused-variable
199199
name, command, signals, delay = profile

0 commit comments

Comments
 (0)