diff --git a/homeassistant/components/spotify/__init__.py b/homeassistant/components/spotify/__init__.py index 9bf43609855..632871ba36e 100644 --- a/homeassistant/components/spotify/__init__.py +++ b/homeassistant/components/spotify/__init__.py @@ -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)