mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 09:35:20 +02:00
Limit derivative test (#31717)
This commit is contained in:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user