Skip to content

Commit a8773ce

Browse files
committed
add new lock states
1 parent 5b97d33 commit a8773ce

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
async def main():
1313
with open(f"{Path(__file__).parent}/config.json", encoding="utf-8") as f:
1414
data = json.load(f)
15-
personal_token = data["personalToken"]
15+
# personal_token = data["personalToken"]
1616
ip = data["ip"]
1717
local_token = data["localToken"]
1818

1919
# client = await TedeeClient.create(personal_token, local_token, ip)
2020
client = TedeeClient(local_ip=ip, local_token=local_token)
21-
await client.cleanup_webhooks_by_host("test")
21+
# await client.cleanup_webhooks_by_host("test")
2222
# bridge = await client.get_local_bridge()
2323
# await client.delete_webhook(5)
2424
# await client.register_webhook("http://192.168.1.151/events")

pytedee_async/lock.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
class TedeeLockState(IntEnum):
77
"""Tedee Lock State."""
88

9-
UNKNOWN = 0
9+
UNCALIBRATED = 0
10+
CALIBRATING = 1
1011
UNLOCKED = 2
1112
HALF_OPEN = 3
1213
UNLOCKING = 4
1314
LOCKING = 5
1415
LOCKED = 6
1516
PULLED = 7
17+
PULLING = 8
18+
UNKNOWN = 9
19+
UPDATING = 18
1620

1721

1822
class TedeeLock:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="pytedee_async",
8-
version="0.2.14",
8+
version="0.2.15",
99
author="Josef Zweck",
1010
author_email="[email protected]",
1111
description="A Tedee Lock Client package",

0 commit comments

Comments
 (0)