You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a few weeks i get the startup message saying circadian lighting cannot setup.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component
result = await task
^^^^^^^^^^
File "/config/custom_components/circadian_lighting/__init__.py", line 119, in async_setup
await hass.data[DOMAIN]._async_init(interval=conf.get(CONF_INTERVAL))
File "/config/custom_components/circadian_lighting/__init__.py", line 157, in _async_init
self._percent = await self.async_calc_percent()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/circadian_lighting/__init__.py", line 292, in async_calc_percent
a = (y - k) / (h - x) ** 2
^
UnboundLocalError: cannot access local variable 'k' where it is not associated with a value
Since a few weeks i get the startup message saying circadian lighting cannot setup.
I have this in the configuration:
And this switch:
The text was updated successfully, but these errors were encountered: