Migrate scene platform to use async_add_executor_job (#113114)
This commit is contained in:
parent
e71398d1e0
commit
42527862e0
1 changed files with 1 additions and 1 deletions
|
@ -131,6 +131,6 @@ class Scene(RestoreEntity):
|
|||
|
||||
async def async_activate(self, **kwargs: Any) -> None:
|
||||
"""Activate scene. Try to get entities into requested state."""
|
||||
task = self.hass.async_add_job(ft.partial(self.activate, **kwargs))
|
||||
task = self.hass.async_add_executor_job(ft.partial(self.activate, **kwargs))
|
||||
if task:
|
||||
await task
|
||||
|
|
Loading…
Add table
Reference in a new issue