Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert remaining async_add_job to async_add_executor_job in media_player #41790

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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