-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to load calendar #3
Comments
Could be an issue occuring when the official list is empty.... I will looking into the matter when possible. |
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: |
Thank you for the contribution - I am a little preoccupied these days. Will update the integration "next year".... ;-) |
I can confirm, that if I change the URL in the const.py file it works. |
Wow, thank you for your effort.... |
I now have another problem loading the add-on: My logs have this: Error during setup of component flagdays_dk |
HelloA completely new and 100% rewritten version is soon available.The new version does not rely on webscraping of the flagdays. The calculation of sunrise and sunset is also done locally.I need a few days for final testing before release - maybe you would like to test it?/Jacob11. jan. 2023 18.30 skrev dkNeumann ***@***.***>:
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'
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Sound good. |
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 |
I still get an error: Logger: homeassistant.setup Error during setup of component 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. |
flagdays_dk: |
Fixed in v.3.0. |
Hi, Logger: homeassistant.setup Error during setup of component flagdays_dk I'm running v3.0.1. Have the one line as config. |
Oh, shit - I see it too with only the "one-liner".... |
I have fixed, but unable to upload to github at the moment. |
Uploaded v3.0.2 with a fix. |
Hello,
Recently the integration stopped working, I get the following the system log:
Logger: homeassistant.components.sensor
Source: custom_components/flagdays_dk/sensor.py:70
Integration: Sensor (documentation, issues)
First occurred: 16.24.09 (2 occurrences)
Last logged: 16.24.09
Error adding entities for domain sensor with platform flagdays_dk
Error while setting up flagdays_dk platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 692, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 789, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 583, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 551, in _stringify_state
if (state := self.state) is None:
File "/config/custom_components/flagdays_dk/sensor.py", line 70, in state
return self._nextFlagDay.getDays()
AttributeError: 'NoneType' object has no attribute 'getDays'
I'm on:
Home Assistant 2022.12.8
Supervisor 2022.12.1
Operating System 9.4
Brugerfladeversion: 20221213.1 - latest
I have tried to remove the integration and the re-install with the default settings, but no luck.
The text was updated successfully, but these errors were encountered: