Change MediaPlayerDevice to MediaPlayerEntity (#35692)

This commit is contained in:
uvjustin 2020-05-16 16:06:35 +08:00 committed by GitHub
parent f3bb370b3a
commit 299a4fa1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ import logging
from pyforked_daapd import ForkedDaapdAPI
from pylibrespot_java import LibrespotJavaAPI
from homeassistant.components.media_player import MediaPlayerDevice
from homeassistant.components.media_player import MediaPlayerEntity
from homeassistant.components.media_player.const import MEDIA_TYPE_MUSIC
from homeassistant.const import (
CONF_HOST,
@ -116,7 +116,7 @@ async def update_listener(hass, entry):
)
class ForkedDaapdZone(MediaPlayerDevice):
class ForkedDaapdZone(MediaPlayerEntity):
"""Representation of a forked-daapd output."""
def __init__(self, api, output, entry_id):
@ -221,7 +221,7 @@ class ForkedDaapdZone(MediaPlayerDevice):
return SUPPORTED_FEATURES_ZONE
class ForkedDaapdMaster(MediaPlayerDevice):
class ForkedDaapdMaster(MediaPlayerEntity):
"""Representation of the main forked-daapd device."""
def __init__(