Comments (17)
Could be an issue occuring when the official list is empty....
https://www.justitsministeriet.dk/temaer/flagning/flagdage/
I will looking into the matter when possible.
from flagdays_dk.
Seems very possible, tried to look at justitsministeriet.dk and they have not updated the list, however it exists and can be reached specifying the year, as follows:
https://www.justitsministeriet.dk/temaer/flagning/flagdage/flagdage-2023/
Regards,
Henrik
from flagdays_dk.
Thank you for the contribution - I am a little preoccupied these days. Will update the integration "next year".... ;-)
from flagdays_dk.
I can confirm, that if I change the URL in the const.py file it works.
Happy New Year to you :-)
from flagdays_dk.
Wow, thank you for your effort....
from flagdays_dk.
I now have another problem loading the add-on:
My logs have this:
Logger: homeassistant.setup
Source: custom_components/flagdays_dk/init.py:39
Integration: flagdays_dk (documentation, issues)
First occurred: 18.26.06 (1 occurrences)
Last logged: 18.26.06
Error during setup of component flagdays_dk
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
result = await task
File "/config/custom_components/flagdays_dk/init.py", line 39, in async_setup
flags = config[DOMAIN].get(CONF_FLAGS, [DEFAULT_FLAG])
AttributeError: 'NodeListClass' object has no attribute 'get'
from flagdays_dk.
from flagdays_dk.
Sound good.
Let me know where to get the code and I can test it on my install :-)
from flagdays_dk.
A pre-release version is available here: https://my.ocloud.dk/index.php/s/pNDJyNZd9D5FKFY
flagdays_dk:
# Optional entries
offset: 5 # New name
flagdays:
- name: Jolly Roger Memorial Day
flag: Jolly Roger
date: 10-06-1975
- name: Copenhagen Pride Month
flag: Pride
date: 01-08
date_end: 31-08
- name: Tim Berners Lee Birthday
date: 08-06-1955
priority: 2 # 0 is highest priority
- name: Ada Lovelace Birthday
date: 10-12-1815
from flagdays_dk.
I still get an error:
Logger: homeassistant.setup
Source: custom_components/flagdays_dk/init.py:28
Integration: flagdays_dk (documentation, issues)
First occurred: 17.01.24 (1 occurrences)
Last logged: 17.01.24
Error during setup of component flagdays_dk
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
result = await task
File "/config/custom_components/flagdays_dk/init.py", line 28, in async_setup
flagdays.addCustom(config[DOMAIN].get(CONF_FLAGDAYS))
AttributeError: 'NodeListClass' object has no attribute 'get'
from flagdays_dk.
Try putting just flagdays: into the config.
It is a work in progress, but I believe that I will have a working version ready in a few days.
from flagdays_dk.
flagdays_dk:
from flagdays_dk.
Fixed in v.3.0.
from flagdays_dk.
Hi,
Still the same issue:
Logger: homeassistant.setup
Source: custom_components/flagdays_dk/init.py:63
Integration: flagdays_dk (documentation, issues)
First occurred: 16.12.06 (1 occurrences)
Last logged: 16.12.06
Error during setup of component flagdays_dk
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
result = await task
File "/config/custom_components/flagdays_dk/init.py", line 63, in async_setup
for customFlagday in config[DOMAIN].get(CONF_FLAGDAYS):
TypeError: 'NoneType' object is not iterable
I'm running v3.0.1. Have the one line as config.
from flagdays_dk.
Oh, shit - I see it too with only the "one-liner"....
from flagdays_dk.
I have fixed, but unable to upload to github at the moment.
from flagdays_dk.
Uploaded v3.0.2 with a fix.
from flagdays_dk.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flagdays_dk.