Repository navigation
A small one, and a follow up on the button press from 2.0.0.
New: LaMetricLocalAuth.supported() tells whether a device can hand out its API key with a press on its button, without asking for it. Nothing shows on the screen of the device, so it is safe to call up front, for example right after discovery, to pick the right way to set a device up.
request_challenge() now raises a LaMetricUnsupportedError for a device without the button press, like an LM 37X8 TIME. Before, that was a plain LaMetricError, just like any other failure, so there was no telling "this device cannot do this" apart from "something went wrong". It subclasses LaMetricError, so existing code keeps working.
Both were checked against real devices: an LM 37X8 TIME and an sa8 TIME.
../Frenck
Blogging my personal ramblings at frenck.dev