Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## [0.9.8](https://github.com/python-ring-doorbell/python-ring-doorbell/tree/0.9.8) (2024-10-18)

[Full Changelog](https://github.com/python-ring-doorbell/python-ring-doorbell/compare/0.9.7...0.9.8)

**Release highlights:**

- **Breaking** - Devices no longer automatically refresh after calling setters. Consumers should call `async_refresh_devices` to get updated values. This allows consumers to wait for the api to properly reflect changes before reporting them back.
- Fixes floodcam light switches - Ring servers suddenly require `PUT` requests to provide null json values.

**Breaking change pull requests:**

- Do not refresh devices after calling setters [\#454](https://github.com/python-ring-doorbell/python-ring-doorbell/pull/454) (@sdb9696)

**Implemented enhancements:**

- Add light command to cli [\#457](https://github.com/python-ring-doorbell/python-ring-doorbell/pull/457) (@sdb9696)

**Fixed bugs:**

- Fix 422 errors on PUT requests [\#456](https://github.com/python-ring-doorbell/python-ring-doorbell/pull/456) (@sdb9696)
- Add hardware\_id to all requests [\#455](https://github.com/python-ring-doorbell/python-ring-doorbell/pull/455) (@sdb9696)

## [0.9.7](https://github.com/python-ring-doorbell/python-ring-doorbell/tree/0.9.7) (2024-10-04)

[Full Changelog](https://github.com/python-ring-doorbell/python-ring-doorbell/compare/0.9.6...0.9.7)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ring-doorbell"
version = "0.9.7"
version = "0.9.8"
description = "A Python library to communicate with Ring Door Bell (https://ring.com/)"
authors = [{ name = "python-ring-doorbell developers" }]
license = { text="LGPL-3.0-or-later" }
Expand Down
6 changes: 3 additions & 3 deletions ring_doorbell/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from typing import TYPE_CHECKING, Any, Callable
from warnings import warn

from typing_extensions import Concatenate, ParamSpec, TypeVar
from typing_extensions import ParamSpec, TypeVar

from ring_doorbell.exceptions import RingError

Expand Down Expand Up @@ -66,7 +66,7 @@ def __init__(self, auth: Auth) -> None:

async def run_and_close_session(
self,
async_method: Callable[Concatenate[_T, _P], Coroutine[Any, Any, _R]],
async_method: Callable[_P, Coroutine[Any, Any, _R]],
*args: _P.args,
**kwargs: _P.kwargs,
) -> _R:
Expand Down Expand Up @@ -101,7 +101,7 @@ def get_api_query(
classname = type(class_instance).__name__

def _deprecated_sync_function(
async_func: Callable[Concatenate[_T, _P], Coroutine[Any, Any, _R]],
async_func: Callable[_P, Coroutine[Any, Any, _R]],
) -> Callable[_P, _R]:
def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
self.check_no_loop(classname, method_name)
Expand Down
Loading