Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Jul 07:30
· 100 commits to main since this release

Changelog

⚠️ Breaking changes for all users

The lock module is renamed into chsesame2 in #31. This is a preparation to support new devices, so please bear with me.

Old

from pysesame3.lock import CHSesame2

New

from pysesame3.chsesame2 import CHSesame2

⚠️ Breaking changes for CognitoAuth users

Using subscribeMechStatus, you can set a function (callback) to be executed when the lock status changes. In previous releases, device shadows were not handled correctly within pysesame3 if you set your own callbacks. The issue is fixed at #27.

From this release, the callback must accept two inputs. The first will be a device object itself and the second will be a latest MechStatus of a device. Please take a look at the updated example script.

Old

def your_callback(client, userdata, message):
    ...

New

def your_callback(device: CHSesame2, status: CHSesame2MechStatus):
    ...

v0.4.0 (2021-07-03)

Fixed bugs:

  • [Bug]: subscribeMechStatus callback will not be executed #32
  • Fix for unexpected (imcomplete) device shadow #33

Merged pull requests:

  • Rename the module: lock -> chsesame2 #31
  • Ensure we have the latest pip version in build environments #30
  • Increase test coverage, correct type hints #29
  • Modernize issue templates #28
  • Support for setting the callback for MechStatus updates #27
  • Fix signed value conversion #26
  • Update precommit hook pre-commit/mirrors-isort to v5.9.1 #24