Skip to content

Commit

Permalink
Merge pull request #12 from tcfranks/main
Browse files Browse the repository at this point in the history
remove pass from Rate which implements CV and change initialize error…
  • Loading branch information
tekktrik authored Oct 12, 2022
2 parents c99a65c + 28aeddf commit 83dbd5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adafruit_lps2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ class Rate(CV):
"""

pass # pylint: disable=unnecessary-pass


class LPS2X: # pylint: disable=too-many-instance-attributes
"""Base class ST LPS2x family of pressure sensors
Expand Down Expand Up @@ -164,7 +162,7 @@ def __init__(

def initialize(self) -> None: # pylint: disable=no-self-use
"""Configure the sensor with the default settings. For use after calling :meth:`reset`"""
raise RuntimeError(
raise NotImplementedError(
"LPS2X Base class cannot be instantiated directly. Use LPS22 or LPS25 instead"
) # override in subclass

Expand Down

0 comments on commit 83dbd5a

Please sign in to comment.