mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Use PEP 695 type alias for ConfigEntry type in Spotify (#118106)
Use PEP 695 type alias for ConfigEntry type
This commit is contained in:
parent
6fc6d109c9
commit
10efb2017b
@ -30,8 +30,6 @@ from .util import (
|
|||||||
|
|
||||||
PLATFORMS = [Platform.MEDIA_PLAYER]
|
PLATFORMS = [Platform.MEDIA_PLAYER]
|
||||||
|
|
||||||
SpotifyConfigEntry = ConfigEntry["HomeAssistantSpotifyData"]
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"async_browse_media",
|
"async_browse_media",
|
||||||
"DOMAIN",
|
"DOMAIN",
|
||||||
@ -51,6 +49,9 @@ class HomeAssistantSpotifyData:
|
|||||||
session: OAuth2Session
|
session: OAuth2Session
|
||||||
|
|
||||||
|
|
||||||
|
type SpotifyConfigEntry = ConfigEntry[HomeAssistantSpotifyData]
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: SpotifyConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: SpotifyConfigEntry) -> bool:
|
||||||
"""Set up Spotify from a config entry."""
|
"""Set up Spotify from a config entry."""
|
||||||
implementation = await async_get_config_entry_implementation(hass, entry)
|
implementation = await async_get_config_entry_implementation(hass, entry)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user