Skip to content

Commit 57965f9

Browse files
authored
Merge pull request #25 from adafruit/patch-fix
Linted
2 parents 97bbefe + 15da73f commit 57965f9

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)