mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use enums for Panasonic Viera (#62062)
This commit is contained in:
parent
c8607b1a4c
commit
6083b56139
@ -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…
x
Reference in New Issue
Block a user