Widen songpal volume step change compatibility (#36152)

* Update songpal / media_player.py

Based on issue https://github.com/home-assistant/core/issues/36135

* Update test_media_player.py
This commit is contained in:
k2v1n58 authored and GitHub committed 2020-05-28 00:09:15 +02:00
1 parent a7842b6301
commit f14a4935df
2 files changed
+3 -5

No files matched your search

@@ -316,11 +316,11 @@ class SongpalEntity(MediaPlayerEntity):
async def async_volume_up(self):
"""Set volume up."""
return await self._volume_control.set_volume("+1")
return await self._volume_control.set_volume(self._volume + 1)
async def async_volume_down(self):
"""Set volume down."""
return await self._volume_control.set_volume("-1")
return await self._volume_control.set_volume(self._volume - 1)
async def async_turn_on(self):
"""Turn the device on."""