Skip to content

Commit

Permalink
Merge pull request #49 from golles/master
Browse files Browse the repository at this point in the history
Fix some comments
  • Loading branch information
Sennevds authored Jan 6, 2024
2 parents a59fd6c + b853de8 commit 9b80808
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions custom_components/media_player_template/media_player.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def _update_state(self, result):

@property
def name(self):
"""Return the name of the switch."""
"""Return the name of the media player."""
return self._name

@property
Expand Down Expand Up @@ -552,11 +552,11 @@ async def async_turn_off(self):
await self._off_script.async_run(context=self._context)

async def async_volume_up(self):
"""Fire the off action."""
"""Fire the volume up action."""
await self._volume_up_script.async_run(context=self._context)

async def async_volume_down(self):
"""Fire the off action."""
"""Fire the volume down action."""
await self._volume_down_script.async_run(context=self._context)

async def async_mute_volume(self, mute):
Expand All @@ -567,14 +567,15 @@ async def async_mute_volume(self, mute):
await self._mute_script.async_run({"is_muted": mute}, context=self._context)

async def async_media_play(self):
"""Fire the off action."""
"""Fire the play action."""
await self._play_script.async_run(context=self._context)

async def async_media_stop(self):
"""Fire the stop action."""
await self._stop_script.async_run(context=self._context)

async def async_media_pause(self):
"""Fire the off action."""
"""Fire the pause action."""
await self._pause_script.async_run(context=self._context)

async def async_media_next_track(self):
Expand Down

0 comments on commit 9b80808

Please sign in to comment.