Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 31d4c9d commit cb18ded
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions adafruit_bh1750.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -214,7 +212,6 @@ def _settings(self, value: int) -> None:

@property
def _raw_reading(self) -> int:

self._buffer[0] = 0
self._buffer[1] = 0

Expand Down

0 comments on commit cb18ded

Please sign in to comment.