Update trend to use async_add_executor_job (#41454)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-08 09:20:58 +02:00
1 parent ad5273ded1
commit e10413fa4c
1 file changed
+1 -1
@@ -203,7 +203,7 @@ class SensorTrend(BinarySensorEntity):
return
# 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
self._state = (