Skip to content

Commit 5b882c6

Browse files
committed
Run pre-commit
1 parent a56cb21 commit 5b882c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adafruit_ltr390.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464

6565
class UnalignedStruct(Struct):
6666
"""Class for reading multi-byte data registers with a data length less than the full bitwidth
67-
of the registers. Most registers of this sort are left aligned to preserve the sign bit"""
67+
of the registers. Most registers of this sort are left aligned to preserve the sign bit
68+
"""
6869

6970
def __init__(self, register_address, struct_format, bitwidth, length):
7071
super().__init__(register_address, struct_format)
@@ -294,7 +295,6 @@ class LTR390: # pylint:disable=too-many-instance-attributes
294295
def __init__(self, i2c: I2C, address: int = _DEFAULT_I2C_ADDR) -> None:
295296
self.i2c_device = i2c_device.I2CDevice(i2c, address)
296297
if self._id_reg != 0xB2:
297-
298298
raise RuntimeError("Unable to find LTR390; check your wiring")
299299

300300
self._mode_cache = None
@@ -439,7 +439,8 @@ def lux(self) -> float:
439439
def window_factor(self) -> float:
440440
"""Window transmission factor (Wfac) for UVI and Lux calculations.
441441
A factor of 1 (default) represents no window or clear glass; > 1 for a tinted window.
442-
Factor of > 1 requires an empirical calibration with a reference light source."""
442+
Factor of > 1 requires an empirical calibration with a reference light source.
443+
"""
443444
return self._window_factor
444445

445446
@window_factor.setter

examples/ltr390_alert_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
ltr.enable_alerts(True, UV, 1)
1717

1818
while True:
19-
2019
if ltr.threshold_passed:
2120
print("UV:", ltr.uvs)
2221
print("threshold", THRESHOLD_VALUE, "passed!")

0 commit comments

Comments
 (0)