Fix Onkyo volume rounding (#134157)

This commit is contained in:
Artur Pragacz 2024-12-28 21:34:01 +01:00 committed by GitHub
parent 72a96249b1
commit b3aede611a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: