Removed default values and fixed description in sensor.filter

This commit is contained in:
nielstron committed 2018-06-06 20:40:50 +02:00
1 parent b42f4012d1
commit 734a83c657
1 file changed
+2 -2
+2 -2
View File
@@ -355,7 +355,7 @@ class BandPassFilter(Filter):
"""
def __init__(self, window_size, precision, entity,
lower_bound=math.inf, upper_bound=-math.inf):
lower_bound, upper_bound):
"""Initialize Filter."""
super().__init__(FILTER_NAME_OUTLIER, window_size, precision, entity)
self._lower_bound = lower_bound
@@ -363,7 +363,7 @@ class BandPassFilter(Filter):
self._stats_internal = Counter()
def _filter_state(self, new_state):
"""Implement the outlier filter."""
"""Implement the band-pass filter."""
new_state = float(new_state)
if new_state > self._upper_bound: