From 6fcf5472a5e69d7e007bf614ce6b0f94192b2d5a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 11 Feb 2020 00:03:52 -0800 Subject: [PATCH] Limit derivative test (#31717) --- tests/components/derivative/test_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/derivative/test_sensor.py b/tests/components/derivative/test_sensor.py index 05ce55223d0688..9ffa29571b7549 100644 --- a/tests/components/derivative/test_sensor.py +++ b/tests/components/derivative/test_sensor.py @@ -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)))