Update kira to use async_add_executor_job (#41847)

pull/41806/head
J. Nick Koston 2020-10-15 09:22:37 -05:00 committed by GitHub
parent 2e05592039
commit 3ee4f43b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,6 +50,6 @@ class KiraRemote(Entity):
async def async_send_command(self, command, **kwargs):
"""Send a command to a device."""
return await self.hass.async_add_job(
return await self.hass.async_add_executor_job(
ft.partial(self.send_command, command, **kwargs)
)