-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
[WIP] Upgrade Astral to 2.2 #48282
[WIP] Upgrade Astral to 2.2 #48282
Conversation
Thanks for bumping the dependency! However, could you please update the PR description to contain at least one (or multiple) of the following:
This allows us to review upstream changes, which is needed to decide this change is working as intended and/or if we can include it in, for example, a patch release of Home Assistant. Thanks already! 👍 |
I've updated on the pull request to reflect that information, thank you. As it stands currently the pull request is in WIP due to tests failing. Despite working properly in production, My lack of knowledge is showing was trying to determine why the tests are failing. I will do some reading and continue to update |
Marking it draft until ready 👍 |
I have determined the problem with the tests, it is the tests themselves. It was based off the the previous data from astral. Now using more accurate values the tests have been re-written. I still am failing one test of TOD and cannot seem to figure out why. If anyone has any idea please feel free to weight in. |
Ahh yeh sorry I should have commented. The tests were written to match Astral's output, not the real world. I remember this now from when I was working on it ages ago. Not doing much HA stuff these days. It might be worth adding a test to ensure stuff like the Sun actually sets after it rises, although really Astral should have integrated the test cases I sent in to them, I don't know if they did however. |
No problem, that made sense when I reviewed the code. What is now preventing the tests seems to be an issue inherit in Astral, Norwegian Winters are not handled correctly. The fact the sun does not set for multiple days does not work with the new logic of astral. See: sffjunkie/astral#67 Until this is resolved by Astral this Pull Request has no value. I can close the pull request if we wanted to, or keep open to adjust for a fix in Astral |
Breaking change
Proposed change
Updates the Astral Package to 2.2. This assists users running home-assistant on distros with dependancies attached to a more recent version of Astral such as seen in Arch linux
Type of change
Example entry for
configuration.yaml
:# Example configuration.yaml
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests:
Differences between Astral 2.2 and 1.10.1
sffjunkie/astral@1.10.1...2.2
See Version Changes at this link for main differences
https://astral.readthedocs.io/en/latest/index.html