Skip to content

Commit

Permalink
always call set_volume with integer values (#31418)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavid authored Feb 2, 2020
1 parent 826433b commit 96ede54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/webostv/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ async def async_volume_down(self):
@cmd
async def async_set_volume_level(self, volume):
"""Set volume level, range 0..1."""
tv_volume = volume * 100
tv_volume = int(round(volume * 100))
await self._client.set_volume(tv_volume)

@cmd
Expand Down

0 comments on commit 96ede54

Please sign in to comment.