Releases: J-Lindvig/Flagdays_DK
Bugfixes and improvements
The switch from https to http in the API had caused some strange errors, these should be fixed now.
SSL certificate on API broken
The online API for the calculations of sunrise and sunset in the future has a broken SSL certificate - switched to plain http....
Years passed and opmized code
This release features a calculation on years passed in custom events, which is enabled by default and possible to bypass in configuration:
flagdays_dk:
# Optional entries
# Create attributes with specified offset in minutes
# These are to be used as triggers in automatiions
offset: 10
# List of flags that we own and wish to use
flags:
- grΓΈnland
- færø
- pride
- Jolly Roger
# List of custom events
# Required: name and date
# Optional: flag
events:
- name: Jolly Roger Memorial Day
date: 01-01-2022
flag: Jolly Roger
calculate_years: false # Do not calculate years on this event
- name: Copenhagen Pride
date: 01-08-2004
- name: Tim Berners Lee Birthday
date: 08-06-1955
- name: Ada Lovelace Birthday
date: 10-12-1815
Added to HACS and bugfix
The integration is now added HACS.
Remove a minor in the date calculation custom events.
Fixed missing update on state
There was a minor bug where the state wasn't updated.
The bug were introduced when I minimized the load on the website holding the flagdays.
Fixed error in owner
There was an error in HACS requirement regarding the owner tag.
Fixed HACS requirements
I was missing some fields in hasc.json and the manifest.
Friendly_name bug
The change of friendly_name to the event name was not working on new installations and have been reverted to 'flagdays'
Bugfix - update State
There was an error causing a missing update on State. The bug was caused by a missing function since I removed the repeated scraping.
Optimized code and more options
Optimized code, removed redundant lines, Friendly_name is now name of element.
More options in custom events.