Use enums philips_js (#62063)

This commit is contained in:
Robert Hillis 2021-12-16 09:02:38 -05:00 committed by GitHub
parent 3b9547addc
commit ff654a9753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,9 @@ import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.media_player import (
DEVICE_CLASS_TV,
PLATFORM_SCHEMA,
BrowseMedia,
MediaPlayerDeviceClass,
MediaPlayerEntity,
)
from homeassistant.components.media_player.const import (
@ -124,7 +124,7 @@ async def async_setup_entry(
class PhilipsTVMediaPlayer(CoordinatorEntity, MediaPlayerEntity):
"""Representation of a Philips TV exposing the JointSpace API."""
_attr_device_class = DEVICE_CLASS_TV
_attr_device_class = MediaPlayerDeviceClass.TV
def __init__(
self,