From 35a7b322e77e71b1f24e84384a4163ba2bfc5032 Mon Sep 17 00:00:00 2001 From: m00str Date: Fri, 26 Apr 2024 12:22:07 +0200 Subject: [PATCH] Update coordinator.py Edited self._receiver_max_volume and self._max_volume to self.receiver_max_volume and self.max_volume --- custom_components/onkyo/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/onkyo/coordinator.py b/custom_components/onkyo/coordinator.py index ffab58c..4ecc412 100644 --- a/custom_components/onkyo/coordinator.py +++ b/custom_components/onkyo/coordinator.py @@ -194,7 +194,7 @@ async def async_fetch_data_zone(self, zone): if supports_volume: # AMP_VOL/MAX_RECEIVER_VOL*(MAX_VOL/100) volume = ( - volume_raw[1] / self._receiver_max_volume * (self._max_volume / 100) + volume_raw[1] / self.receiver_max_volume * (self.max_volume / 100) ) datas.update({"volume": volume})