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
@@ -2,7 +2,7 @@
|
||||
from pdunehd import DuneHDPlayer
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
|
||||
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerEntity
|
||||
from homeassistant.components.media_player.const import (
|
||||
SUPPORT_NEXT_TRACK,
|
||||
SUPPORT_PAUSE,
|
||||
@@ -55,7 +55,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
add_entities([DuneHDPlayerEntity(DuneHDPlayer(host), name, sources)], True)
|
||||
|
||||
|
||||
class DuneHDPlayerEntity(MediaPlayerDevice):
|
||||
class DuneHDPlayerEntity(MediaPlayerEntity):
|
||||
"""Implementation of the Dune HD player."""
|
||||
|
||||
def __init__(self, player, name, sources):
|
||||
|
||||
Reference in new issue
Block a user