Skip to content
Draft
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
4 changes: 3 additions & 1 deletion homeassistant/components/youtube/api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""API for YouTube bound to Home Assistant OAuth."""

from typing import cast

from youtubeaio.types import AuthScope
from youtubeaio.youtube import YouTube

Expand All @@ -26,7 +28,7 @@ def __init__(
@property
def access_token(self) -> str:
"""Return the access token."""
return self.oauth_session.token[CONF_ACCESS_TOKEN] # type: ignore[no-any-return]
return cast(str, self.oauth_session.token[CONF_ACCESS_TOKEN])

async def check_and_refresh_token(self) -> str:
"""Check the token."""
Expand Down
Loading