Skip to content

[Bug]: device status callback never executed #58

@zhyu

Description

@zhyu

Description - 説明

Everything works fine with the version 0.0.4. After I upgrade pysesameos2 to 0.0.5, I found the device status callback never executed.

I checked the source code, found the setDeviceStatusCallback of CHSesame2 wrongfully executes pass instead of calling the method extended from its parent:

def setDeviceStatusCallback(
self, callback: Optional[Callable[["CHSesame2"], None]]
) -> None:
"""Set a device status callback.
Args:
callback (Optional[Callable[[CHSesame2], None]]): The callback to be called on device status changing.
"""
pass

Expected Behavior - 期待する動作

After device status changed, the callback set with setDeviceStatusCallback should be executed.

Pysesameos2 version (pip show pysesameos2)

0.0.5

Python version (python --version)

3.9.2

OS

pi os

BlueZ version (bluetoothctl -v) in case of Linux

No response

How to Reproduce - 再現方法

Just run the example code and try to lock/unlock with mqtt command.

Output - 出力された内容, 具体的な問題内容

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions