Skip to content

Commit

Permalink
Fix Bang & Olufsen wrong source being compared (home-assistant#121512)
Browse files Browse the repository at this point in the history
  • Loading branch information
mj23000 authored Jul 8, 2024
1 parent 60e1df2 commit f801649
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions homeassistant/components/bang_olufsen/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,10 @@ def source(self) -> str | None:
if (
hasattr(self._playback_metadata, "art")
and self._playback_metadata.art is not None
and len(self._playback_metadata.art) == 0
and self._source_change.id == BangOlufsenSource.CHROMECAST.id
):
if (
len(self._playback_metadata.art) == 0
and self._source_change.id == BangOlufsenSource.BLUETOOTH.id
):
return BangOlufsenSource.BLUETOOTH.name
return BangOlufsenSource.BLUETOOTH.name

return self._source_change.name

Expand Down

0 comments on commit f801649

Please sign in to comment.