Fix webostv supported features for "external_speaker" sound output (#40435)

This commit is contained in:
Pedro Lamas 2020-09-22 09:49:44 +01:00 committed by Franck Nijhof
parent 6cccd87318
commit 297e5300b4
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -305,7 +305,9 @@ class LgWebOSMediaPlayerEntity(MediaPlayerEntity):
"""Flag media player features that are supported."""
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
elif self._client.sound_output != "lineout":
supported = supported | SUPPORT_WEBOSTV_VOLUME | SUPPORT_VOLUME_SET