Skip to content

Commit

Permalink
Fix #52 and limit the use of announcement volume to annoucements
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc committed Aug 7, 2023
1 parent ba0f2d4 commit 574de4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/teufel_raumfeld/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ async def async_play_media(self, media_type, media_id, **kwargs):
fixed_announcement_volume = self._raumfeld.options[
OPTION_FIXED_ANNOUNCEMENT_VOLUME
]
if fixed_announcement_volume:
if announce and fixed_announcement_volume:
announcement_volume = (
self._raumfeld.options[OPTION_ANNOUNCEMENT_VOLUME] / 100
)
Expand Down

0 comments on commit 574de4c

Please sign in to comment.