mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Use shorthand attributes for DLNA dmr (#99236)
This commit is contained in:
parent
13ebb68b84
commit
69117cb8e3
@ -129,6 +129,9 @@ class DlnaDmrEntity(MediaPlayerEntity):
|
|||||||
# determine whether further device polling is required.
|
# determine whether further device polling is required.
|
||||||
_attr_should_poll = True
|
_attr_should_poll = True
|
||||||
|
|
||||||
|
# Name of the current sound mode, not supported by DLNA
|
||||||
|
_attr_sound_mode = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
udn: str,
|
udn: str,
|
||||||
@ -745,11 +748,6 @@ class DlnaDmrEntity(MediaPlayerEntity):
|
|||||||
"Couldn't find a suitable mode for shuffle=%s, repeat=%s", shuffle, repeat
|
"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
|
@property
|
||||||
def sound_mode_list(self) -> list[str] | None:
|
def sound_mode_list(self) -> list[str] | None:
|
||||||
"""List of available sound modes."""
|
"""List of available sound modes."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user