Convert remaining async_add_job to async_add_executor_job in media_player (#41790)

This commit is contained in:
J. Nick Koston
2020-10-13 14:57:36 -05:00
committed by GitHub
parent aefd4908df
commit b58ef6ae92

View File

@@ -658,7 +658,7 @@ class MediaPlayerEntity(Entity):
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