mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 08:06:00 +01:00
Migrate scene platform to use async_add_executor_job (#113114)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user