mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Move samsung tv device class outside of constructor (#100712)
This commit is contained in:
parent
794736b503
commit
d30a5f4d54
@ -72,6 +72,7 @@ class SamsungTVDevice(SamsungTVEntity, MediaPlayerEntity):
|
|||||||
"""Representation of a Samsung TV."""
|
"""Representation of a Samsung TV."""
|
||||||
|
|
||||||
_attr_source_list: list[str]
|
_attr_source_list: list[str]
|
||||||
|
_attr_device_class = MediaPlayerDeviceClass.TV
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -90,7 +91,6 @@ class SamsungTVDevice(SamsungTVEntity, MediaPlayerEntity):
|
|||||||
self._playing: bool = True
|
self._playing: bool = True
|
||||||
|
|
||||||
self._attr_is_volume_muted: bool = False
|
self._attr_is_volume_muted: bool = False
|
||||||
self._attr_device_class = MediaPlayerDeviceClass.TV
|
|
||||||
self._attr_source_list = list(SOURCES)
|
self._attr_source_list = list(SOURCES)
|
||||||
self._app_list: dict[str, str] | None = None
|
self._app_list: dict[str, str] | None = None
|
||||||
self._app_list_event: asyncio.Event = asyncio.Event()
|
self._app_list_event: asyncio.Event = asyncio.Event()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user