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.
2 parents 659af73 + 89849d4 commit a46ba23Copy full SHA for a46ba23
adafruit_platformdetect/chip.py
@@ -422,6 +422,8 @@ def __getattr__(self, attr: str) -> bool:
422
Detect whether the given attribute is the currently-detected chip. See
423
list of constants at the top of this module for available options.
424
"""
425
+ if attr == "id":
426
+ raise AttributeError() # Avoid infinite recursion
427
if self.id == attr:
428
return True
429
return False
0 commit comments