Use new MediaPlayerDeviceClass enum in braviatv (#61325)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
76bdf9bc25
commit
9d25961bf3
1 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,10 @@ from __future__ import annotations
|
|||
|
||||
from typing import Final
|
||||
|
||||
from homeassistant.components.media_player import DEVICE_CLASS_TV, MediaPlayerEntity
|
||||
from homeassistant.components.media_player import (
|
||||
MediaPlayerDeviceClass,
|
||||
MediaPlayerEntity,
|
||||
)
|
||||
from homeassistant.components.media_player.const import (
|
||||
SUPPORT_NEXT_TRACK,
|
||||
SUPPORT_PAUSE,
|
||||
|
@ -68,7 +71,7 @@ class BraviaTVMediaPlayer(CoordinatorEntity, MediaPlayerEntity):
|
|||
"""Representation of a Bravia TV Media Player."""
|
||||
|
||||
coordinator: BraviaTVCoordinator
|
||||
_attr_device_class = DEVICE_CLASS_TV
|
||||
_attr_device_class = MediaPlayerDeviceClass.TV
|
||||
_attr_supported_features = SUPPORT_BRAVIA
|
||||
|
||||
def __init__(
|
||||
|
|
Loading…
Add table
Reference in a new issue