Update kira to use async_add_executor_job (#41847)

This commit is contained in:
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

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)
)