Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Version of Astral and changes to sun

See original GitHub issue

2021.5 makes changes to Astral and how sun works, it is a breaking update for this custom_component.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/", line 248, in _async_setup_component result = await task File "/usr/local/lib/python3.8/concurrent/futures/", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/circadian_lighting/", line 108, in setup[DOMAIN] = CircadianLighting( File "/config/custom_components/circadian_lighting/", line 157, in __init__ self._percent = self.calc_percent() File "/config/custom_components/circadian_lighting/", line 251, in calc_percent today = self._relevant_events(now) File "/config/custom_components/circadian_lighting/", line 242, in _relevant_events sun_events = self._get_sun_events(now + timedelta(days=days)) File "/config/custom_components/circadian_lighting/", line 203, in _get_sun_events location = astral.Location() AttributeError: module 'astral' has no attribute 'Location'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:16
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

RobertDWhitecommented, May 9, 2021

You can replace your file with

This will get you working again until this repo gets an update.

claytonjncommented, May 28, 2021

Sorry for my absence, I have a new puppy and job that have been keeping me busy!

This has been implemented in version 2.0.4-beta, which also changes the component to be async along with a couple other changes. Please test and let me know if everything is working properly - if so I will push to a general release. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Patch Notes - December 2022 - 0.38.0 · Astral Ascent update ...
--- Sun/Moon room cost adjustement: We changed the way sun and moon rooms work, now both the Sun and the Moon room will...
Read more >
Astral v3.0 — Astral 3.0 documentation
Astral is a python package for calculating the times of various aspects of the sun and moon. It can calculate the following. Dawn:...
Read more >
Astral Eclipse in Pokémon GO: changes, new features, and ...
The Timed Research called Astral Eclipse is now available in Pokémon GO, bringing with it changes new features, and rewards.
Read more >
Sword & Shield—Astral Radiance - Pokémon TCG
Pokémon TCG: Sword & Shield—Astral Radiance​​ This expansion introduces a sparkling new mechanic unique to Shiny Pokémon. Each player is only allowed to...
Read more >
Introducing Astral Tequila, Nourished by the Sun and Stars
Astral, which means of the stars, is a new super-premium tequila crafted with 100% Blue Weber agave, nourished by the good energy that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found