mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add DeviceClass TV to LG Netcast (#67999)
This commit is contained in:
parent
49b642a6ba
commit
bc2aaedcec
@ -8,7 +8,11 @@ from requests import RequestException
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import util
|
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 (
|
from homeassistant.components.media_player.const import (
|
||||||
MEDIA_TYPE_CHANNEL,
|
MEDIA_TYPE_CHANNEL,
|
||||||
SUPPORT_NEXT_TRACK,
|
SUPPORT_NEXT_TRACK,
|
||||||
@ -91,6 +95,8 @@ def setup_platform(
|
|||||||
class LgTVDevice(MediaPlayerEntity):
|
class LgTVDevice(MediaPlayerEntity):
|
||||||
"""Representation of a LG TV."""
|
"""Representation of a LG TV."""
|
||||||
|
|
||||||
|
_attr_device_class = MediaPlayerDeviceClass.TV
|
||||||
|
|
||||||
def __init__(self, client, name, on_action_script):
|
def __init__(self, client, name, on_action_script):
|
||||||
"""Initialize the LG TV device."""
|
"""Initialize the LG TV device."""
|
||||||
self._client = client
|
self._client = client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user