Move samsung tv device class outside of constructor (#100712)

This commit is contained in:
Joost Lekkerkerker 2023-09-22 12:45:22 +02:00 committed by GitHub
parent 794736b503
commit d30a5f4d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ class SamsungTVDevice(SamsungTVEntity, MediaPlayerEntity):
"""Representation of a Samsung TV."""
_attr_source_list: list[str]
_attr_device_class = MediaPlayerDeviceClass.TV
def __init__(
self,
@ -90,7 +91,6 @@ class SamsungTVDevice(SamsungTVEntity, MediaPlayerEntity):
self._playing: bool = True
self._attr_is_volume_muted: bool = False
self._attr_device_class = MediaPlayerDeviceClass.TV
self._attr_source_list = list(SOURCES)
self._app_list: dict[str, str] | None = None
self._app_list_event: asyncio.Event = asyncio.Event()