Git Product home page Git Product logo

Comments (17)

J-Lindvig avatar J-Lindvig commented on August 28, 2024

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.

dkNeumann avatar dkNeumann commented on August 28, 2024

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.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

Thank you for the contribution - I am a little preoccupied these days. Will update the integration "next year".... ;-)

from flagdays_dk.

dkNeumann avatar dkNeumann commented on August 28, 2024

I can confirm, that if I change the URL in the const.py file it works.
Happy New Year to you :-)

from flagdays_dk.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

Wow, thank you for your effort....

from flagdays_dk.

dkNeumann avatar dkNeumann commented on August 28, 2024

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.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

from flagdays_dk.

dkNeumann avatar dkNeumann commented on August 28, 2024

Sound good.
Let me know where to get the code and I can test it on my install :-)

from flagdays_dk.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

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.

dkNeumann avatar dkNeumann commented on August 28, 2024

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.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

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.

J-Lindvig avatar J-Lindvig commented on August 28, 2024
flagdays_dk:

from flagdays_dk.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

Fixed in v.3.0.

from flagdays_dk.

dkNeumann avatar dkNeumann commented on August 28, 2024

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.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

Oh, shit - I see it too with only the "one-liner"....

from flagdays_dk.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

I have fixed, but unable to upload to github at the moment.

from flagdays_dk.

J-Lindvig avatar J-Lindvig commented on August 28, 2024

Uploaded v3.0.2 with a fix.

from flagdays_dk.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.