Closed DietBru closed 3 years ago
Thanks for the report. We've already fixed that for the non-async version of the code, see #94 .
I've made the same change now in the async code and will release asap.
I've released v2.0.0a2
Hey, any chance this bugfix could be backported to the 1.3.x version? Some of our Python 2 using users at https://github.com/flyte/pi-mqtt-gpio are hitting this issue.
Or they could fork it and make a python2 port.
or get with the game and update to python3 ;-)
(yeah, not much help that, sorry :-) )
On Sun, 24 Jan 2021 at 17:59, Ellis Percival notifications@github.com wrote:
Hey, any chance this bugfix could be backported to the 1.3.x version? Some of our Python 2 using users at flyte/pi-mqtt-gpio are hitting this issue.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timofurrer/w1thermsensor/issues/96#issuecomment-766403352, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN7ZUG5WVZPGQX2RYNDS3RNXLANCNFSM4QPSFTBQ .
Just hoped it'd be a trivial fix.
We're only supporting Python 2 until it becomes too much of a pain in the butt, or I finally release the Python 3 only asyncio version.
To be honest, the fix would be trivial - however, the very last Python 2 release for w1thermsensor already happened and since it's long been deprecated any ways I don't want to support it any longer.
If you really need Python 2 I suggest that you go with @bsimmo solution of a fork-and-port.
In any case, I highly recommend you to drop Python 2 support too and go with a supported Python 3 version - but I suspect you are aware of that already :)
🍻
I am having a few DS18B20 sensors connected to raspberry pi zero. From time to time the contents of the file
/sys/bus/w1/devices/28.../w1_slave
appears to be empty (not sure why). Hence the contents of the listdata
in the methodget_raw_sensor_strings()
in fileasync_core.py
is empty as well. Accessing it raises anIndexError
.Changing line 65 in file
async_core.py
from:to
resolves the problem.
Thanks.
PS: I am using version
w1thermsensor 2.0.0a1