forked from home-assistant/core
Fix webostv supported features for "external_speaker" sound output (#40435)
This commit is contained in:
committed by
Franck Nijhof
parent
6cccd87318
commit
297e5300b4
@@ -305,7 +305,9 @@ class LgWebOSMediaPlayerEntity(MediaPlayerEntity):
|
|||||||
"""Flag media player features that are supported."""
|
"""Flag media player features that are supported."""
|
||||||
supported = SUPPORT_WEBOSTV
|
supported = SUPPORT_WEBOSTV
|
||||||
|
|
||||||
if self._client.sound_output == "external_arc":
|
if (self._client.sound_output == "external_arc") or (
|
||||||
|
self._client.sound_output == "external_speaker"
|
||||||
|
):
|
||||||
supported = supported | SUPPORT_WEBOSTV_VOLUME
|
supported = supported | SUPPORT_WEBOSTV_VOLUME
|
||||||
elif self._client.sound_output != "lineout":
|
elif self._client.sound_output != "lineout":
|
||||||
supported = supported | SUPPORT_WEBOSTV_VOLUME | SUPPORT_VOLUME_SET
|
supported = supported | SUPPORT_WEBOSTV_VOLUME | SUPPORT_VOLUME_SET
|
||||||
|
Reference in New Issue
Block a user