We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70db215 commit e3e4c24Copy full SHA for e3e4c24
1 file changed
adafruit_button/button_base.py
@@ -78,9 +78,7 @@ def __init__(
78
@property
79
def label(self):
80
"""The text label of the button"""
81
- if self._label is not None and hasattr(self._label, "text"):
82
- return self._label.text
83
- return None
+ return getattr(self._label, "text", None)
84
85
@label.setter
86
def label(self, newtext):
0 commit comments