Skip to content

Commit

Permalink
Convert remaining async_add_job to async_add_executor_job in media_pl…
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored and weissm committed Oct 16, 2020
1 parent 8437e3d commit dbf7895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/__init__.py
Expand Up @@ -658,7 +658,7 @@ def set_repeat(self, repeat):

async def async_set_repeat(self, repeat):
"""Set repeat mode."""
await self.hass.async_add_job(self.set_repeat, repeat)
await self.hass.async_add_executor_job(self.set_repeat, repeat)

# No need to overwrite these.
@property
Expand Down

0 comments on commit dbf7895

Please sign in to comment.