mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Update trend to use async_add_executor_job (#41454)
This commit is contained in:
@@ -203,7 +203,7 @@ class SensorTrend(BinarySensorEntity):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Calculate gradient of linear trend
|
# Calculate gradient of linear trend
|
||||||
await self.hass.async_add_job(self._calculate_gradient)
|
await self.hass.async_add_executor_job(self._calculate_gradient)
|
||||||
|
|
||||||
# Update state
|
# Update state
|
||||||
self._state = (
|
self._state = (
|
||||||
|
Reference in New Issue
Block a user