Skip to content

Commit

Permalink
Fix Bang & Olufsen jumping volume bar (#120946)
Browse files Browse the repository at this point in the history
  • Loading branch information
mj23000 authored Jul 1, 2024
1 parent 7a3039a commit a29dc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/bang_olufsen/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def state(self) -> MediaPlayerState:
@property
def volume_level(self) -> float | None:
"""Volume level of the media player (0..1)."""
if self._volume.level and self._volume.level.level:
if self._volume.level and self._volume.level.level is not None:
return float(self._volume.level.level / 100)
return None

Expand Down

0 comments on commit a29dc4e

Please sign in to comment.