Rename MediaPlayerDevice to MediaPlayerEntity (#34592)
This commit is contained in:
parent
56f7c3b55c
commit
62bc02fdda
75 changed files with 178 additions and 156 deletions
|
@ -10,7 +10,7 @@ from aiohomekit.model.characteristics import (
|
|||
from aiohomekit.model.services import ServicesTypes
|
||||
from aiohomekit.utils import clamp_enum_to_char
|
||||
|
||||
from homeassistant.components.media_player import DEVICE_CLASS_TV, MediaPlayerDevice
|
||||
from homeassistant.components.media_player import DEVICE_CLASS_TV, MediaPlayerEntity
|
||||
from homeassistant.components.media_player.const import (
|
||||
SUPPORT_PAUSE,
|
||||
SUPPORT_PLAY,
|
||||
|
@ -54,7 +54,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
conn.add_listener(async_add_service)
|
||||
|
||||
|
||||
class HomeKitTelevision(HomeKitEntity, MediaPlayerDevice):
|
||||
class HomeKitTelevision(HomeKitEntity, MediaPlayerEntity):
|
||||
"""Representation of a HomeKit Controller Television."""
|
||||
|
||||
def get_characteristic_types(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue