mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Set deviceclass to speaker for Sonos media_player (#80694)
This commit is contained in:
parent
7636477760
commit
b087c1e734
@ -21,6 +21,7 @@ from homeassistant.components.media_player import (
|
|||||||
ATTR_INPUT_SOURCE,
|
ATTR_INPUT_SOURCE,
|
||||||
ATTR_MEDIA_ENQUEUE,
|
ATTR_MEDIA_ENQUEUE,
|
||||||
BrowseMedia,
|
BrowseMedia,
|
||||||
|
MediaPlayerDeviceClass,
|
||||||
MediaPlayerEnqueue,
|
MediaPlayerEnqueue,
|
||||||
MediaPlayerEntity,
|
MediaPlayerEntity,
|
||||||
MediaPlayerEntityFeature,
|
MediaPlayerEntityFeature,
|
||||||
@ -205,6 +206,7 @@ class SonosMediaPlayerEntity(SonosEntity, MediaPlayerEntity):
|
|||||||
| MediaPlayerEntityFeature.VOLUME_SET
|
| MediaPlayerEntityFeature.VOLUME_SET
|
||||||
)
|
)
|
||||||
_attr_media_content_type = MediaType.MUSIC
|
_attr_media_content_type = MediaType.MUSIC
|
||||||
|
_attr_device_class = MediaPlayerDeviceClass.SPEAKER
|
||||||
|
|
||||||
def __init__(self, speaker: SonosSpeaker) -> None:
|
def __init__(self, speaker: SonosSpeaker) -> None:
|
||||||
"""Initialize the media player entity."""
|
"""Initialize the media player entity."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user