Skip to content

Commit

Permalink
Use PEP 695 type alias for ConfigEntry type in Spotify (#118106)
Browse files Browse the repository at this point in the history
Use PEP 695 type alias for ConfigEntry type
  • Loading branch information
mib1185 committed May 25, 2024
1 parent 6fc6d10 commit 10efb20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/spotify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

PLATFORMS = [Platform.MEDIA_PLAYER]

SpotifyConfigEntry = ConfigEntry["HomeAssistantSpotifyData"]

__all__ = [
"async_browse_media",
"DOMAIN",
Expand All @@ -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)
Expand Down

0 comments on commit 10efb20

Please sign in to comment.