Skip to content
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

HA 2021.5.0: Exception: 'sunset+15m' not defined at this latitude #203

Closed
bob-tm opened this issue May 7, 2021 · 7 comments
Closed

HA 2021.5.0: Exception: 'sunset+15m' not defined at this latitude #203

bob-tm opened this issue May 7, 2021 · 7 comments

Comments

@bob-tm
Copy link

bob-tm commented May 7, 2021

After updating to HA core-2021.5.0

@time_trigger("startup", "once(sunset+15m)", "once(02:00:00)", "once(sunrise-15m)")

stop working
with exception:
2021-05-06 18:36:31 WARNING (MainThread) [custom_components.pyscript.trigger] 'sunset+15m' not defined at this latitude

I checked the HA Sun object at dev page and it looks ok with correct values.
Before update everything works fine.

@bob-tm
Copy link
Author

bob-tm commented May 7, 2021

this is the problem?
home-assistant/core#48573

@bob-tm bob-tm changed the title Exception: 'sunset+15m' not defined at this latitude HA 2021.5.0: Exception: 'sunset+15m' not defined at this latitude May 7, 2021
@DanielWinks
Copy link

I've also been seeing the "sunset is not defined at this latitude" error. Also on 2021.5.x.

@craigbarratt
Copy link
Member

Yikes. @bob-tm - your diagnosis is correct. Thanks for tracking down the cause.

I just pushed a fix that should work for 2021.5 and also be backward compatible. Can you try the master version and confirm it works?

There are some commit test errors but they are unrelated and I'll fix them later.

@bob-tm
Copy link
Author

bob-tm commented May 9, 2021

tnx. fixed!

@bob-tm bob-tm closed this as completed May 9, 2021
@wsw70
Copy link
Contributor

wsw70 commented May 9, 2021

I overwrote the HACS installed pyscript with the master version and there are no more errors, thanks a lot for fixing this!

An unrelated question: now that I have the master version in custom_compoennts - will HACS still suggest me a new version when it is officially released? Or do I have to go full manual from now on?

@dlashua
Copy link
Contributor

dlashua commented May 10, 2021

@wsw70 it will still suggest upgrades to you.

@wsw70
Copy link
Contributor

wsw70 commented May 10, 2021

Thanks @dlashua. This is also the info I got in the HACS discord.

EDIT: I just saw the new version suggested by HACS :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants