Skip to content

Commit 15da73f

Browse files
committed
Linted
1 parent 97bbefe commit 15da73f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ds18x20.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class DS18X20:
6666
"""
6767

6868
def __init__(self, bus, address):
69-
if address.family_code == 0x10 or address.family_code == 0x28:
69+
if address.family_code in (0x10, 0x28):
7070
self._address = address
7171
self._device = OneWireDevice(bus, address)
7272
self._buf = bytearray(9)

0 commit comments

Comments
 (0)