Skip to content

Commit

Permalink
Bugfix: save and publish the given volume, not the bounded volume (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrendt authored Oct 17, 2024
1 parent cbc2c3e commit 5923595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/nabu/nabu_media_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void NabuMediaPlayer::set_volume_(float volume, bool publish) {
}

if (publish) {
this->volume = bounded_volume;
this->volume = volume;
this->save_volume_restore_state_();
}

Expand Down

0 comments on commit 5923595

Please sign in to comment.