README.md states that you should try to get the values again after 1/2 second, if a RuntimeError has occurred. However, the measurement function in your library has the delay_between_readings property, which is set to 2 seconds.
So if you try to read again within 2 seconds, the function does not update the temperature / humidity properties and returns cached values.
I don't know if that's exactly what you wanted to communicate, but for me it was not clear and caused some confusion. If you want a new reading after failure, you have to wait at least 2 seconds. That's totally ok, but maybe you update your readme to clarify this behaviour.
Hi there!
Thank you for providing this library :)
README.md states that you should try to get the values again after 1/2 second, if a RuntimeError has occurred. However, the measurement function in your library has the delay_between_readings property, which is set to 2 seconds. So if you try to read again within 2 seconds, the function does not update the temperature / humidity properties and returns cached values.
I don't know if that's exactly what you wanted to communicate, but for me it was not clear and caused some confusion. If you want a new reading after failure, you have to wait at least 2 seconds. That's totally ok, but maybe you update your readme to clarify this behaviour.
Best Regards, Stefan