Rename MediaPlayerDevice to MediaPlayerEntity (#34592)

This commit is contained in:
Erik Montnemery 2020-04-25 18:00:57 +02:00 committed by GitHub
parent 56f7c3b55c
commit 62bc02fdda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 178 additions and 156 deletions

View file

@ -7,7 +7,7 @@ from requests.exceptions import (
)
from roku import RokuException
from homeassistant.components.media_player import MediaPlayerDevice
from homeassistant.components.media_player import MediaPlayerEntity
from homeassistant.components.media_player.const import (
MEDIA_TYPE_CHANNEL,
SUPPORT_NEXT_TRACK,
@ -45,7 +45,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
async_add_entities([RokuDevice(roku)], True)
class RokuDevice(MediaPlayerDevice):
class RokuDevice(MediaPlayerEntity):
"""Representation of a Roku device on the network."""
def __init__(self, roku):