From ef444cd941e335e7d130159b7ab26f7bb5b5ca03 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 21 Sep 2020 12:32:25 +0200 Subject: [PATCH] rename _calc_percent --- custom_components/circadian_lighting/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/circadian_lighting/__init__.py b/custom_components/circadian_lighting/__init__.py index e396635a..a59ea651 100755 --- a/custom_components/circadian_lighting/__init__.py +++ b/custom_components/circadian_lighting/__init__.py @@ -171,7 +171,7 @@ class CircadianLighting: self._profile = profile _LOGGER.debug("profile: %s", self._profile) - self._percent = self.calc_percent() + self._percent = self._calc_percent() self._colortemp = self.calc_colortemp() self._rgb_color = self.calc_rgb() self._xy_color = self.calc_xy() @@ -318,7 +318,7 @@ class CircadianLighting: async def update(self, _=None): """Update Circadian Values.""" - self._percent = self.calc_percent() + self._percent = self._calc_percent() self._colortemp = self.calc_colortemp() self._rgb_color = self.calc_rgb() self._xy_color = self.calc_xy()