Use shorthand attributes for DLNA dmr (#99236)

This commit is contained in:
Joost Lekkerkerker 2023-09-04 09:23:33 +02:00 committed by GitHub
parent 13ebb68b84
commit 69117cb8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -129,6 +129,9 @@ class DlnaDmrEntity(MediaPlayerEntity):
# determine whether further device polling is required.
_attr_should_poll = True
# Name of the current sound mode, not supported by DLNA
_attr_sound_mode = None
def __init__(
self,
udn: str,
@ -745,11 +748,6 @@ class DlnaDmrEntity(MediaPlayerEntity):
"Couldn't find a suitable mode for shuffle=%s, repeat=%s", shuffle, repeat
)
@property
def sound_mode(self) -> str | None:
"""Name of the current sound mode, not supported by DLNA."""
return None
@property
def sound_mode_list(self) -> list[str] | None:
"""List of available sound modes."""