Use PEP 695 type alias for ConfigEntry type in Spotify (#118106)

Use PEP 695 type alias for ConfigEntry type
pull/118110/head
Michael 2024-05-25 12:55:40 +02:00 committed by GitHub
parent 6fc6d109c9
commit 10efb2017b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -30,8 +30,6 @@ from .util import (
PLATFORMS = [Platform.MEDIA_PLAYER]
SpotifyConfigEntry = ConfigEntry["HomeAssistantSpotifyData"]
__all__ = [
"async_browse_media",
"DOMAIN",
@ -51,6 +49,9 @@ class HomeAssistantSpotifyData:
session: OAuth2Session
type SpotifyConfigEntry = ConfigEntry[HomeAssistantSpotifyData]
async def async_setup_entry(hass: HomeAssistant, entry: SpotifyConfigEntry) -> bool:
"""Set up Spotify from a config entry."""
implementation = await async_get_config_entry_implementation(hass, entry)