From 0980c3a27056631e4d82d70fbbf52fa9dceccde9 Mon Sep 17 00:00:00 2001 From: Josef Zweck Date: Fri, 31 Oct 2025 17:58:31 +0100 Subject: [PATCH] Bump onedrive-personal-sdk to 0.0.15 (#155540) --- homeassistant/components/onedrive/__init__.py | 6 ++---- homeassistant/components/onedrive/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/onedrive/__init__.py b/homeassistant/components/onedrive/__init__.py index ab9255f832e0..3e5406eac3d7 100644 --- a/homeassistant/components/onedrive/__init__.py +++ b/homeassistant/components/onedrive/__init__.py @@ -14,7 +14,7 @@ from onedrive_personal_sdk.exceptions import ( NotFoundError, OneDriveException, ) -from onedrive_personal_sdk.models.items import Item, ItemUpdate +from onedrive_personal_sdk.models.items import ItemUpdate from homeassistant.const import CONF_ACCESS_TOKEN, Platform from homeassistant.core import HomeAssistant @@ -202,9 +202,7 @@ async def _get_onedrive_client( ) -async def _handle_item_operation( - func: Callable[[], Awaitable[Item]], folder: str -) -> Item: +async def _handle_item_operation[T](func: Callable[[], Awaitable[T]], folder: str) -> T: try: return await func() except NotFoundError: diff --git a/homeassistant/components/onedrive/manifest.json b/homeassistant/components/onedrive/manifest.json index a6b47b083dca..2ae81ad1bb38 100644 --- a/homeassistant/components/onedrive/manifest.json +++ b/homeassistant/components/onedrive/manifest.json @@ -10,5 +10,5 @@ "iot_class": "cloud_polling", "loggers": ["onedrive_personal_sdk"], "quality_scale": "platinum", - "requirements": ["onedrive-personal-sdk==0.0.14"] + "requirements": ["onedrive-personal-sdk==0.0.15"] } diff --git a/requirements_all.txt b/requirements_all.txt index 2d97201514c1..e141d211af45 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1612,7 +1612,7 @@ omnilogic==0.4.5 ondilo==0.5.0 # homeassistant.components.onedrive -onedrive-personal-sdk==0.0.14 +onedrive-personal-sdk==0.0.15 # homeassistant.components.onvif onvif-zeep-async==4.0.4 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 3e47476a6e54..9882afbd7d18 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1383,7 +1383,7 @@ omnilogic==0.4.5 ondilo==0.5.0 # homeassistant.components.onedrive -onedrive-personal-sdk==0.0.14 +onedrive-personal-sdk==0.0.15 # homeassistant.components.onvif onvif-zeep-async==4.0.4