Rename precision variable in Filter (#86090)
parent
1cfcc9313b
commit
9cdf7a09ed
|
@ -417,7 +417,7 @@ class Filter:
|
|||
else:
|
||||
self.states = deque(maxlen=0)
|
||||
self.window_unit = WINDOW_SIZE_UNIT_TIME
|
||||
self.precision = precision
|
||||
self.filter_precision = precision
|
||||
self._name = name
|
||||
self._entity = entity
|
||||
self._skip_processing = False
|
||||
|
@ -451,7 +451,7 @@ class Filter:
|
|||
raise ValueError(f"State <{fstate.state}> is not a Number")
|
||||
|
||||
filtered = self._filter_state(fstate)
|
||||
filtered.set_precision(self.precision)
|
||||
filtered.set_precision(self.filter_precision)
|
||||
if self._store_raw:
|
||||
self.states.append(copy(FilterState(new_state)))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue