We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64633cf commit c780253Copy full SHA for c780253
adafruit_hts221.py
@@ -85,7 +85,7 @@ def add_values(
85
@classmethod
86
def is_valid(cls, value: int) -> bool:
87
"""Returns true if the given value is a member of the CV"""
88
- return hasattr(cls, value)
+ return value in cls.label
89
90
91
class Rate(CV):
0 commit comments