From 9cdf7a09ed5951eb523ba6a6cf114ffec27cbafe Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 18 Jan 2023 12:40:04 +0100 Subject: [PATCH] Rename precision variable in Filter (#86090) --- homeassistant/components/filter/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/filter/sensor.py b/homeassistant/components/filter/sensor.py index bfe604059ae..72ea464dcb6 100644 --- a/homeassistant/components/filter/sensor.py +++ b/homeassistant/components/filter/sensor.py @@ -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: