@@ -137,22 +137,22 @@ def H2(self) -> int:
137
137
def iaq_init (self ) -> List [int ]:
138
138
"""Initialize the IAQ algorithm"""
139
139
# 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 ) )
141
141
142
142
def iaq_measure (self ) -> List [int ]:
143
143
"""Measure the eCO2 and TVOC"""
144
144
# 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 ) )
146
146
147
147
def raw_measure (self ) -> List [int ]:
148
148
"""Measure H2 and Ethanol (Raw Signals)"""
149
149
# 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 ) )
151
151
152
152
def get_iaq_baseline (self ) -> List [int ]:
153
153
"""Retreive the IAQ algorithm baseline for eCO2 and TVOC"""
154
154
# 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 ) )
156
156
157
157
def set_iaq_baseline ( # pylint: disable=invalid-name
158
158
self , eCO2 : int , TVOC : int
@@ -165,7 +165,7 @@ def set_iaq_baseline( # pylint: disable=invalid-name
165
165
arr = [value >> 8 , value & 0xFF ]
166
166
arr .append (self ._generate_crc (arr ))
167
167
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 ) )
169
169
170
170
def set_iaq_humidity (self , gramsPM3 : float ) -> None : # pylint: disable=invalid-name
171
171
"""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-
175
175
arr = [value >> 8 , value & 0xFF ]
176
176
arr .append (self ._generate_crc (arr ))
177
177
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 ) )
179
179
180
180
def set_iaq_relative_humidity (self , celsius : float , relative_humidity : float ):
181
181
"""
0 commit comments