Skip to content

Commit 0980c3a

Browse files
authored
Bump onedrive-personal-sdk to 0.0.15 (home-assistant#155540)
1 parent 7cec3aa commit 0980c3a

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

homeassistant/components/onedrive/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NotFoundError,
1515
OneDriveException,
1616
)
17-
from onedrive_personal_sdk.models.items import Item, ItemUpdate
17+
from onedrive_personal_sdk.models.items import ItemUpdate
1818

1919
from homeassistant.const import CONF_ACCESS_TOKEN, Platform
2020
from homeassistant.core import HomeAssistant
@@ -202,9 +202,7 @@ async def get_access_token() -> str:
202202
)
203203

204204

205-
async def _handle_item_operation(
206-
func: Callable[[], Awaitable[Item]], folder: str
207-
) -> Item:
205+
async def _handle_item_operation[T](func: Callable[[], Awaitable[T]], folder: str) -> T:
208206
try:
209207
return await func()
210208
except NotFoundError:

homeassistant/components/onedrive/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"iot_class": "cloud_polling",
1111
"loggers": ["onedrive_personal_sdk"],
1212
"quality_scale": "platinum",
13-
"requirements": ["onedrive-personal-sdk==0.0.14"]
13+
"requirements": ["onedrive-personal-sdk==0.0.15"]
1414
}

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)