Closed timofurrer closed 7 years ago
I don't quite understand the need for this, at least in any usage case for me on a standard Raspian / RaspberryPi setup. These are auto loaded when you enable 1-wire on the Pi. Do i now have to run any program that imports this as 'su' or always have to remove this/alter a setting everytime I grab the code? (I cannot test at the moment).
It was already done during __init__
of a W1ThermSensor
instance. Which lead to problems in case you want to check available sensors before actually creating a sensor.
So, this had to change and I didn't want to break existing code which relies on that behavior. I figured that's the best option.
Do i now have to run any program that imports this as 'su' or always have to remove this/alter a setting everytime I grab the code?
No, unless you haven't loaded the modules already! If they are already loaded you can just use the package without configuring anything special. I have to state that in the README as well.
Excellent :-)
Codecov Report
97.11% <83.33%> (-1.92%)
Continue to review full report at Codecov.