-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Issues #175
Comments
sorry my bad. removed advanced config and it works. Must have something else going on |
back again if I try to add any advance settings I get the error. here is the config values circadian_lighting:
if I only use this circadian_lighting:
it works |
Same issue with a basic setup:
Configuration: circadian_lighting:
switch:
- platform: circadian_lighting
lights_ct:
- light.office_lamp |
For some reason the astral module isn't working properly - this is supposed to be included as part of Home Assistant installation. Can you provide some information about how Home Assistant is installed, what versions you're running, etc.? Also, please install release 2.0.7-beta and turn on debug logging so that we can determine what version of Astral is installed. |
I am running HA |
Hi Installed from HACS. I get the following error on restart.
Logger: homeassistant.setup
Source: custom_components/circadian_lighting/init.py:206
Integration: circadian_lighting (documentation, issues)
First occurred: 8:17:00 AM (1 occurrences)
Last logged: 8:17:00 AM
Error during setup of component circadian_lighting
Traceback (most recent call last):
File "/config/custom_components/circadian_lighting/init.py", line 204, in _get_sun_events
location = astral.location.Location()
AttributeError: module 'astral' has no attribute 'location'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 254, in _async_setup_component
result = await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/circadian_lighting/init.py", line 108, in setup
hass.data[DOMAIN] = CircadianLighting(
File "/config/custom_components/circadian_lighting/init.py", line 157, in init
self._percent = self.calc_percent()
File "/config/custom_components/circadian_lighting/init.py", line 260, in calc_percent
today = self._relevant_events(now)
File "/config/custom_components/circadian_lighting/init.py", line 251, in _relevant_events
sun_events = self._get_sun_events(now + timedelta(days=days))
File "/config/custom_components/circadian_lighting/init.py", line 206, in _get_sun_events
location = astral.Location()
AttributeError: module 'astral' has no attribute 'Location'
The text was updated successfully, but these errors were encountered: