1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02:00

Fix media_player supported features default value (#33366)

I looked at all media_player components and these were the only ones returning None:
- bluesound
- emby
- mpd
This commit is contained in:
Richard de Boer 2020-03-29 05:59:04 +02:00 committed by GitHub
parent de2f506585
commit f32ae95ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -777,7 +777,7 @@ class BluesoundPlayer(MediaPlayerDevice):
def supported_features(self):
"""Flag of media commands that are supported."""
if self._status is None:
return None
return 0
if self.is_grouped and not self.is_master:
return SUPPORT_VOLUME_STEP | SUPPORT_VOLUME_SET | SUPPORT_VOLUME_MUTE

View File

@ -305,7 +305,7 @@ class EmbyDevice(MediaPlayerDevice):
"""Flag media player features that are supported."""
if self.supports_remote_control:
return SUPPORT_EMBY
return None
return 0
async def async_media_play(self):
"""Play media."""

View File

@ -249,7 +249,7 @@ class MpdDevice(MediaPlayerDevice):
def supported_features(self):
"""Flag media player features that are supported."""
if self._status is None:
return None
return 0
supported = SUPPORT_MPD
if "volume" in self._status: