https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731/blob/97eb72a132f0a1349b2276cbc39539725f90515f/adafruit_is31fl3731/__init__.py#L193 It seems there's a missing `return` that should occur when both parameters are `None`. If that does **not** occur, line 209 will (obviously) fail.