mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Migrate scene platform to use async_add_executor_job (#113114)
This commit is contained in:
parent
e71398d1e0
commit
42527862e0
@ -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…
x
Reference in New Issue
Block a user