1
0
mirror of https://github.com/home-assistant/core.git synced 2026-03-03 16:20:40 +00:00

Migrate scene platform to use async_add_executor_job (#113114)

This commit is contained in:
J. Nick Koston
2024-03-11 15:01:30 -10:00
committed by GitHub
parent e71398d1e0
commit 42527862e0

View File

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