Replace executor with async_add_job (#7658)
* Remove executor * Lint * Lint * Fix tests
This commit is contained in:
parent
9e9705d6b2
commit
f43db3c615
46 changed files with 196 additions and 248 deletions
|
@ -75,5 +75,4 @@ class KiraRemote(Entity):
|
|||
|
||||
This method must be run in the event loop and returns a coroutine.
|
||||
"""
|
||||
return self.hass.loop.run_in_executor(
|
||||
None, ft.partial(self.send_command, **kwargs))
|
||||
return self.hass.async_add_job(ft.partial(self.send_command, **kwargs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue