From cb18ded7a397b7cfa45ac3b5151831e9de6522e7 Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Wed, 10 May 2023 22:24:11 -0400 Subject: [PATCH] Run pre-commit --- adafruit_bh1750.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/adafruit_bh1750.py b/adafruit_bh1750.py index 4603f8c..e67603a 100644 --- a/adafruit_bh1750.py +++ b/adafruit_bh1750.py @@ -109,7 +109,6 @@ def __init__(self, num_bits: int, lowest_bit: int) -> None: self._lowest_bit = lowest_bit def __get__(self, obj: Optional["BH1750"], objtype: Type["BH1750"]) -> int: - return (obj._settings & self._bit_mask) >> self._lowest_bit def __set__(self, obj: "BH1750", value: int) -> None: @@ -190,7 +189,6 @@ class BH1750: # pylint:disable=too-many-instance-attributes resolution = RWBitfields(2, 0) def __init__(self, i2c: I2C, address: int = _BH1750_DEFAULT_ADDRESS) -> None: - self.i2c_device = i2c_device.I2CDevice(i2c, address) self._buffer = bytearray(2) self._settings_byte = 0 @@ -214,7 +212,6 @@ def _settings(self, value: int) -> None: @property def _raw_reading(self) -> int: - self._buffer[0] = 0 self._buffer[1] = 0