Rename MediaPlayerDevice to MediaPlayerEntity (#34592)
This commit is contained in:
1 parent
56f7c3b55c
commit
62bc02fdda
75 files changed
+178
-156
No files matched your search
@@ -9,7 +9,7 @@ from aiohttp import ClientError
|
||||
from spotipy import Spotify, SpotifyException
|
||||
from yarl import URL
|
||||
|
||||
from homeassistant.components.media_player import MediaPlayerDevice
|
||||
from homeassistant.components.media_player import MediaPlayerEntity
|
||||
from homeassistant.components.media_player.const import (
|
||||
MEDIA_TYPE_MUSIC,
|
||||
MEDIA_TYPE_PLAYLIST,
|
||||
@@ -90,7 +90,7 @@ def spotify_exception_handler(func):
|
||||
return wrapper
|
||||
|
||||
|
||||
class SpotifyMediaPlayer(MediaPlayerDevice):
|
||||
class SpotifyMediaPlayer(MediaPlayerEntity):
|
||||
"""Representation of a Spotify controller."""
|
||||
|
||||
def __init__(self, session, spotify: Spotify, me: dict, user_id: str, name: str):
|
||||
|
||||
Reference in new issue
Block a user