Add device_class to Panasonic Viera media player entity (#41966)
parent
7469bd9266
commit
554246f061
|
@ -3,7 +3,7 @@ import logging
|
||||||
|
|
||||||
from panasonic_viera import Keys
|
from panasonic_viera import Keys
|
||||||
|
|
||||||
from homeassistant.components.media_player import MediaPlayerEntity
|
from homeassistant.components.media_player import DEVICE_CLASS_TV, 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,
|
||||||
|
@ -87,6 +87,11 @@ class PanasonicVieraTVEntity(MediaPlayerEntity):
|
||||||
"model": self._device_info[ATTR_MODEL_NUMBER],
|
"model": self._device_info[ATTR_MODEL_NUMBER],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_class(self):
|
||||||
|
"""Return the device class of the device."""
|
||||||
|
return DEVICE_CLASS_TV
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the device."""
|
"""Return the name of the device."""
|
||||||
|
|
Loading…
Reference in New Issue