Skip to content

Commit 0612a5f

Browse files
committed
ruff
1 parent d719f1e commit 0612a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ens160.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class ENS160:
108108
def __init__(self, i2c_bus: I2C, address: int = ENS160_I2CADDR_DEFAULT) -> None:
109109
self.i2c_device = i2c_device.I2CDevice(i2c_bus, address)
110110

111-
if self.part_id not in (0x160, 0x161):
111+
if self.part_id not in {0x160, 0x161}:
112112
raise RuntimeError("Unable to find ENS160 or ENS161, check your wiring")
113113
self.clear_command()
114114
self.mode = MODE_STANDARD

0 commit comments

Comments
 (0)