2023.5.1: device.py: resist rotating api versions again
Latest
When a device has been working using a protocol version, then any
communication failures are unlikely to be due to a protocol version
change. Such changes will only happen after a device firmware upgrade
which is a rare case. Instead of restarting protocol detection
immediately, give another 10 attempts (each "attempt" being 3
failures) using the current protocol, which is most likely to work.
Recent changes at the request of users who want to detect offline
devices faster have made things less resilient for devices which are
having intermittent network issues. This change attempts to address
that.
Issue #653