mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +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
|
# HA_VOL * (MAX VOL / 100) * VOL_RESOLUTION
|
||||||
self._update_receiver(
|
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:
|
async def async_volume_up(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user