mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Add device class TV to AndroidTV (#78487)
This commit is contained in:
parent
c0cf9d8729
commit
aa46ba4ad5
@ -21,6 +21,7 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.components import persistent_notification
|
from homeassistant.components import persistent_notification
|
||||||
from homeassistant.components.media_player import (
|
from homeassistant.components.media_player import (
|
||||||
|
MediaPlayerDeviceClass,
|
||||||
MediaPlayerEntity,
|
MediaPlayerEntity,
|
||||||
MediaPlayerEntityFeature,
|
MediaPlayerEntityFeature,
|
||||||
MediaPlayerState,
|
MediaPlayerState,
|
||||||
@ -205,6 +206,8 @@ def adb_decorator(
|
|||||||
class ADBDevice(MediaPlayerEntity):
|
class ADBDevice(MediaPlayerEntity):
|
||||||
"""Representation of an Android TV or Fire TV device."""
|
"""Representation of an Android TV or Fire TV device."""
|
||||||
|
|
||||||
|
_attr_device_class = MediaPlayerDeviceClass.TV
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
aftv,
|
aftv,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user