Skip to content

Commit

Permalink
Fix support for play/pause functionality in System Bridge (#103423)
Browse files Browse the repository at this point in the history
Fix support for play/pause functionality
  • Loading branch information
timmo001 committed Jan 6, 2024
1 parent ee67c97 commit ba60290
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions homeassistant/components/system_bridge/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ def supported_features(self) -> MediaPlayerEntityFeature:
features |= MediaPlayerEntityFeature.PREVIOUS_TRACK
if data.media.is_next_enabled:
features |= MediaPlayerEntityFeature.NEXT_TRACK
if data.media.is_pause_enabled:
features |= MediaPlayerEntityFeature.PAUSE
if data.media.is_play_enabled:
features |= MediaPlayerEntityFeature.PLAY
if data.media.is_pause_enabled or data.media.is_play_enabled:
features |= MediaPlayerEntityFeature.PAUSE | MediaPlayerEntityFeature.PLAY
if data.media.is_stop_enabled:
features |= MediaPlayerEntityFeature.STOP

Expand Down

0 comments on commit ba60290

Please sign in to comment.