Skip to content

Commit

Permalink
fix: allow passing of kwargs for async_send_tts
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Feb 18, 2020
1 parent 2bd8d3c commit 1dc1e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,12 +997,12 @@ async def async_media_previous_track(self):
await self.async_update()

@_catch_login_errors
async def async_send_tts(self, message):
async def async_send_tts(self, message, **kwargs):
"""Send TTS to Device.
NOTE: Does not work on WHA Groups.
"""
await self.alexa_api.send_tts(message, customer_id=self._customer_id)
await self.alexa_api.send_tts(message, customer_id=self._customer_id, **kwargs)

@_catch_login_errors
async def async_send_announcement(self, message, **kwargs):
Expand Down

0 comments on commit 1dc1e77

Please sign in to comment.