Rename MediaPlayerDevice to MediaPlayerEntity (#34592)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-25 18:00:57 +02:00
1 parent 56f7c3b55c
commit 62bc02fdda
75 files changed
+178 -156

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ import logging
from pyps4_2ndscreen.errors import NotReady, PSDataIncomplete
import pyps4_2ndscreen.ps4 as pyps4
from homeassistant.components.media_player import MediaPlayerDevice
from homeassistant.components.media_player import MediaPlayerEntity
from homeassistant.components.media_player.const import (
ATTR_MEDIA_CONTENT_TYPE,
ATTR_MEDIA_TITLE,
@@ -69,7 +69,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
async_add_entities(device_list, update_before_add=True)
class PS4Device(MediaPlayerDevice):
class PS4Device(MediaPlayerEntity):
"""Representation of a PS4."""
def __init__(self, config, name, host, region, ps4, creds):