Convert remaining async_add_job to async_add_executor_job in media_player (#41790)
This commit is contained in:
1 parent
aefd4908df
commit
b58ef6ae92
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user