https://github.com/fivesixzero/CircuitPython_HX711/blob/4efc13f5e69f482d9b43936077e19e5fbeb7f285/hx711/__init__.py#L183 This accepts any int or float because of the `or`. It should be `if gain >= 1 and gain <= 3:`
CircuitPython_HX711/hx711/__init__.py
Line 183 in 4efc13f
This accepts any int or float because of the
or.It should be
if gain >= 1 and gain <= 3: