mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix volume calculation of Onkyo MediaPlayer (#42236)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
c7f35b20fb
commit
d8f2d04b4f
@ -299,8 +299,8 @@ class OnkyoDevice(MediaPlayerEntity):
|
|||||||
|
|
||||||
self._muted = bool(mute_raw[1] == "on")
|
self._muted = bool(mute_raw[1] == "on")
|
||||||
# AMP_VOL/MAX_RECEIVER_VOL*(MAX_VOL/100)
|
# AMP_VOL/MAX_RECEIVER_VOL*(MAX_VOL/100)
|
||||||
self._volume = (
|
self._volume = volume_raw[1] / (
|
||||||
volume_raw[1] / self._receiver_max_volume * (self._max_volume / 100)
|
self._receiver_max_volume * self._max_volume / 100
|
||||||
)
|
)
|
||||||
|
|
||||||
if not hdmi_out_raw:
|
if not hdmi_out_raw:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user