Add DeviceClass TV to LG Netcast (#67999)

This commit is contained in:
Artem Draft 2022-03-11 19:59:45 +03:00 committed by GitHub
parent 49b642a6ba
commit bc2aaedcec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,11 @@ from requests import RequestException
import voluptuous as vol
from homeassistant import util
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerEntity
from homeassistant.components.media_player import (
PLATFORM_SCHEMA,
MediaPlayerDeviceClass,
MediaPlayerEntity,
)
from homeassistant.components.media_player.const import (
MEDIA_TYPE_CHANNEL,
SUPPORT_NEXT_TRACK,
@ -91,6 +95,8 @@ def setup_platform(
class LgTVDevice(MediaPlayerEntity):
"""Representation of a LG TV."""
_attr_device_class = MediaPlayerDeviceClass.TV
def __init__(self, client, name, on_action_script):
"""Initialize the LG TV device."""
self._client = client