Skip to content

Commit

Permalink
add new lock states
Browse files Browse the repository at this point in the history
  • Loading branch information
zweckj committed Mar 6, 2024
1 parent 5b97d33 commit a8773ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
async def main():
with open(f"{Path(__file__).parent}/config.json", encoding="utf-8") as f:
data = json.load(f)
personal_token = data["personalToken"]
# personal_token = data["personalToken"]
ip = data["ip"]
local_token = data["localToken"]

# client = await TedeeClient.create(personal_token, local_token, ip)
client = TedeeClient(local_ip=ip, local_token=local_token)
await client.cleanup_webhooks_by_host("test")
# await client.cleanup_webhooks_by_host("test")
# bridge = await client.get_local_bridge()
# await client.delete_webhook(5)
# await client.register_webhook("http://192.168.1.151/events")
Expand Down
6 changes: 5 additions & 1 deletion pytedee_async/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
class TedeeLockState(IntEnum):
"""Tedee Lock State."""

UNKNOWN = 0
UNCALIBRATED = 0
CALIBRATING = 1
UNLOCKED = 2
HALF_OPEN = 3
UNLOCKING = 4
LOCKING = 5
LOCKED = 6
PULLED = 7
PULLING = 8
UNKNOWN = 9
UPDATING = 18


class TedeeLock:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pytedee_async",
version="0.2.14",
version="0.2.15",
author="Josef Zweck",
author_email="[email protected]",
description="A Tedee Lock Client package",
Expand Down

0 comments on commit a8773ce

Please sign in to comment.