Rename precision variable in Filter (#86090)

pull/86165/head
epenet 2023-01-18 12:40:04 +01:00 committed by GitHub
parent 1cfcc9313b
commit 9cdf7a09ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: