Use enums for Panasonic Viera (#62062)
This commit is contained in:
parent
c8607b1a4c
commit
6083b56139
1 changed files with 5 additions and 2 deletions
|
@ -5,7 +5,10 @@ import logging
|
||||||
|
|
||||||
from panasonic_viera import Keys
|
from panasonic_viera import Keys
|
||||||
|
|
||||||
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 (
|
from homeassistant.components.media_player.const import (
|
||||||
MEDIA_TYPE_URL,
|
MEDIA_TYPE_URL,
|
||||||
SUPPORT_NEXT_TRACK,
|
SUPPORT_NEXT_TRACK,
|
||||||
|
@ -95,7 +98,7 @@ class PanasonicVieraTVEntity(MediaPlayerEntity):
|
||||||
@property
|
@property
|
||||||
def device_class(self):
|
def device_class(self):
|
||||||
"""Return the device class of the device."""
|
"""Return the device class of the device."""
|
||||||
return DEVICE_CLASS_TV
|
return MediaPlayerDeviceClass.TV
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue