mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix volume calculation of Onkyo MediaPlayer (#42236)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user