mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Limit derivative test (#31717)
This commit is contained in:
parent
5a0f21cbe3
commit
6fcf5472a5
@ -131,8 +131,8 @@ async def test_data_moving_average_for_discrete_sensor(hass):
|
||||
# (because the true derivative is 1 °C/min) an error of less than 10%.
|
||||
|
||||
temperature_values = []
|
||||
for temperature in range(60):
|
||||
temperature_values += [temperature] * 60
|
||||
for temperature in range(6):
|
||||
temperature_values += [temperature] * 6
|
||||
time_window = 600
|
||||
|
||||
times = list(range(len(temperature_values)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user