Skip to content

Commit c780253

Browse files
tekktrikNeradoc
andauthored
Update adafruit_hts221.py
Co-authored-by: Neradoc <[email protected]>
1 parent 64633cf commit c780253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_hts221.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def add_values(
8585
@classmethod
8686
def is_valid(cls, value: int) -> bool:
8787
"""Returns true if the given value is a member of the CV"""
88-
return hasattr(cls, value)
88+
return value in cls.label
8989

9090

9191
class Rate(CV):

0 commit comments

Comments
 (0)