mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix Onkyo volume rounding (#134157)
This commit is contained in:
parent
45fd7fb6d5
commit
0873d27d7b
@ -427,7 +427,7 @@ class OnkyoMediaPlayer(MediaPlayerEntity):
|
||||
"""
|
||||
# HA_VOL * (MAX VOL / 100) * VOL_RESOLUTION
|
||||
self._update_receiver(
|
||||
"volume", int(volume * (self._max_volume / 100) * self._volume_resolution)
|
||||
"volume", round(volume * (self._max_volume / 100) * self._volume_resolution)
|
||||
)
|
||||
|
||||
async def async_volume_up(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user