mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 03:07:50 +00:00
19 lines
488 B
Python
19 lines
488 B
Python
"""Models for use in Spotify integration."""
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Any
|
|
|
|
from homeassistant.helpers.config_entry_oauth2_flow import OAuth2Session
|
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
|
|
|
from .coordinator import SpotifyCoordinator
|
|
|
|
|
|
@dataclass
|
|
class SpotifyData:
|
|
"""Class to hold Spotify data."""
|
|
|
|
coordinator: SpotifyCoordinator
|
|
session: OAuth2Session
|
|
devices: DataUpdateCoordinator[list[dict[str, Any]]]
|