diff --git a/tests/components/sensor/test_filter.py b/tests/components/sensor/test_filter.py index 718c39764d0..cf2cc9c4205 100644 --- a/tests/components/sensor/test_filter.py +++ b/tests/components/sensor/test_filter.py @@ -136,8 +136,7 @@ class TestFilterSensor(unittest.TestCase): """Test if range filter works.""" lower = 10 upper = 20 - filt = RangeFilter(1, None, - entity=None, + filt = RangeFilter(entity=None, lower_bound=lower, upper_bound=upper) for unf_state in self.values: