mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Change MediaPlayerDevice into MediaPlayerEntity (#37629)
This commit is contained in:
parent
d0983b69df
commit
2b37cbe079
@ -4,7 +4,7 @@ import telnetlib
|
|||||||
|
|
||||||
import voluptuous as vol
|
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 (
|
from homeassistant.components.media_player.const import (
|
||||||
SUPPORT_PAUSE,
|
SUPPORT_PAUSE,
|
||||||
SUPPORT_PLAY,
|
SUPPORT_PLAY,
|
||||||
@ -73,7 +73,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
add_entities([pioneer])
|
add_entities([pioneer])
|
||||||
|
|
||||||
|
|
||||||
class PioneerDevice(MediaPlayerDevice):
|
class PioneerDevice(MediaPlayerEntity):
|
||||||
"""Representation of a Pioneer device."""
|
"""Representation of a Pioneer device."""
|
||||||
|
|
||||||
def __init__(self, name, host, port, timeout, sources):
|
def __init__(self, name, host, port, timeout, sources):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user