Skip to content

Commit 28aeddf

Browse files
committed
remove pass from Rate which implements CV and change initialize error to NotImplementedError
1 parent c99a65c commit 28aeddf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_lps2x.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ class Rate(CV):
131131
132132
"""
133133

134-
pass # pylint: disable=unnecessary-pass
135-
136134

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

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

0 commit comments

Comments
 (0)