Skip to content
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

Traceback received in debug log #42

Open
4 tasks done
petermcd opened this issue Dec 6, 2024 · 0 comments
Open
4 tasks done

Traceback received in debug log #42

petermcd opened this issue Dec 6, 2024 · 0 comments

Comments

@petermcd
Copy link

petermcd commented Dec 6, 2024

System Health details

System Information

version core-2024.12.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.0
os_name Linux
os_version 6.6.51-haos-raspi
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4797
Installed Version 2.0.1
Stage running
Available Repositories 1474
Downloaded Repositories 7
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.0
update_channel stable
supervisor_version supervisor-2024.11.4
agent_version 1.6.0
docker_version 27.2.0
disk_total 28.0 GB
disk_used 8.2 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board yellow
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.15.0), Assist Microphone (1.2.0), Whisper (2.3.0), Git pull (7.14.1), Grocy (0.22.1), Music Assistant Server (2.3.3), Mosquitto broker (6.4.1), Ring-MQTT with Video Streaming (5.7.3), Z-Wave JS (0.9.0), Z-Wave JS UI (3.17.0)
Dashboards
dashboards 3
resources 2
views 8
mode storage
Recorder
oldest_recorder_run 24 November 2024 at 23:48
current_recorder_run 6 December 2024 at 00:39
estimated_db_size 143.51 MiB
database_engine sqlite
database_version 3.45.3

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

After installing the integration I end up with 1 entity but this appears to have no content. When looking in the logs (after enabling debug logs) I find a traceback.

Reproduction steps

  1. Setup integration in notions and copied the token
  2. Added the To Do List template
  3. Copied the database ID from the to do list (between the / and the ? in the url)
  4. Download the integration using hacs
  5. Added the integration using the add integration button
  6. Configured using the token and database id above

Debug logs

The only entry in debug logs are as follows:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 927, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1383, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/notion_todo/todo.py", line 126, in async_added_to_hass
    self._handle_coordinator_update()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/config/custom_components/notion_todo/todo.py", line 79, in _handle_coordinator_update
    self._status[id] = propHelper.get_property_by_id(TASK_STATUS_PROPERTY, task)
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/notion_todo/notion_property_helper.py", line 14, in get_property_by_id
    return NotionPropertyHelper._property(data['properties'][key])
                                          ~~~~~~~~~~~~~~~~~~^^^^^

Diagnostics dump

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant