1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix Alexa Step Volume (#12314)

This commit is contained in:
Richard Lucas
2018-02-11 11:25:05 -08:00
committed by Paulus Schoutsen
parent e4a826d1c1
commit 767d3c6206
2 changed files with 3 additions and 3 deletions

View File

@@ -1168,7 +1168,7 @@ def async_api_adjust_volume(hass, config, request, entity):
@asyncio.coroutine
def async_api_adjust_volume_step(hass, config, request, entity):
"""Process an adjust volume step request."""
volume_step = round(float(request[API_PAYLOAD]['volume'] / 100), 2)
volume_step = round(float(request[API_PAYLOAD]['volumeSteps'] / 100), 2)
current_level = entity.attributes.get(media_player.ATTR_MEDIA_VOLUME_LEVEL)