Rename MediaPlayerDevice to MediaPlayerEntity (#34592)
This commit is contained in:
parent
56f7c3b55c
commit
62bc02fdda
75 changed files with 178 additions and 156 deletions
|
@ -4,7 +4,7 @@ import logging
|
|||
|
||||
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 (
|
||||
ATTR_APP_ID,
|
||||
ATTR_APP_NAME,
|
||||
|
@ -116,7 +116,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||
async_add_entities([player])
|
||||
|
||||
|
||||
class UniversalMediaPlayer(MediaPlayerDevice):
|
||||
class UniversalMediaPlayer(MediaPlayerEntity):
|
||||
"""Representation of an universal media player."""
|
||||
|
||||
def __init__(self, hass, name, children, commands, attributes, state_template=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue