Skip to content

Commit

Permalink
use new POST return value
Browse files Browse the repository at this point in the history
  • Loading branch information
zweckj committed Jan 24, 2024
1 parent d6c3946 commit 8d13f53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pytedee_async/tedee_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ async def register_webhook(
if not success:
raise TedeeWebhookException("Unable to register webhook")
_LOGGER.debug("Webhook registered successfully.")

if isinstance(result, dict) and "id" in result:
return result["id"]

# get the webhook id
try:
success, result = await self._local_api_call("/callback", HTTPMethod.GET)
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.11",
version="0.2.12",
author="Josef Zweck",
author_email="[email protected]",
description="A Tedee Lock Client package",
Expand Down

0 comments on commit 8d13f53

Please sign in to comment.