Rename MediaPlayerDevice to MediaPlayerEntity (#34592)
This commit is contained in:
1 parent
56f7c3b55c
commit
62bc02fdda
75 files changed
+178
-156
No files matched your search
@@ -49,7 +49,7 @@ async def async_setup(hass, config):
|
||||
if any((CONF_PLATFORM, DOMAIN) in cfg.items() for cfg in config.get(MP_DOMAIN, [])):
|
||||
# Register the Kodi media_player services
|
||||
async def async_service_handler(service):
|
||||
"""Map services to methods on MediaPlayerDevice."""
|
||||
"""Map services to methods on MediaPlayerEntity."""
|
||||
method = SERVICE_TO_METHOD.get(service.service)
|
||||
if not method:
|
||||
return
|
||||
|
||||
@@ -14,7 +14,7 @@ import voluptuous as vol
|
||||
|
||||
from homeassistant.components.kodi import SERVICE_CALL_METHOD
|
||||
from homeassistant.components.kodi.const import DOMAIN
|
||||
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 (
|
||||
MEDIA_TYPE_CHANNEL,
|
||||
MEDIA_TYPE_MOVIE,
|
||||
@@ -248,7 +248,7 @@ def cmd(func):
|
||||
return wrapper
|
||||
|
||||
|
||||
class KodiDevice(MediaPlayerDevice):
|
||||
class KodiDevice(MediaPlayerEntity):
|
||||
"""Representation of a XBMC/Kodi device."""
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in new issue
Block a user