Skip to content

Commit 048711c

Browse files
committed
plylint
1 parent a512ac1 commit 048711c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_htu31d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
_HTU31D_READSERIAL = const(0x0A) # Read Out of Serial Register
4141
_HTU31D_SOFTRESET = const(0x1E) # Soft Reset
4242
_HTU31D_HEATERON = const(0x04) # Enable heater
43-
_HTU31D_HEATEROFF = const(0x02) # Disable heater
43+
_HTU31D_HEATEROFF = const(0x02) # Disable heater
4444
_HTU31D_CONVERSION = const(0x40) # Start a conversion
4545
_HTU31D_READTEMPHUM = const(0x00) # Read the conversion values
4646

@@ -81,7 +81,7 @@ def heater(self):
8181
@heater.setter
8282
def heater(self, new_mode):
8383
# check its a boolean
84-
if (new_mode != True) and (new_mode != False):
84+
if not new_mode in (True, False):
8585
raise AttributeError("Heater mode must be boolean")
8686
# cache the mode
8787
self._heater = new_mode

0 commit comments

Comments
 (0)