Skip to content

v2.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Oct 10:45
5f321c3

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

What's changed

✨ New features

  • Add checking whether a device supports the button press @frenck (#1201)
  • Add a dedicated error for devices without the button press @frenck (#1202)