Use PEP 695 type alias for ConfigEntry type in Spotify (#118106)
Use PEP 695 type alias for ConfigEntry typepull/118110/head
parent
6fc6d109c9
commit
10efb2017b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue