Skip to content

Commit

Permalink
Update coordinator.py
Browse files Browse the repository at this point in the history
Edited self._receiver_max_volume and self._max_volume to self.receiver_max_volume and self.max_volume
  • Loading branch information
m00str authored Apr 26, 2024
1 parent 4167b36 commit 35a7b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/onkyo/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 35a7b32

Please sign in to comment.