pgorod / power-todoist-card

Improved Todoist card for Home Assistant Lovelace UI.
MIT License
20 stars 7 forks source link

[BUG] Invalid config when try to add sensor #9

Closed julienvedebe closed 3 months ago

julienvedebe commented 3 months ago

Before submitting a bug

Describe the bug When I try to add the sensor REST part in my sensors.yaml :

I got an error in the configuration validation : Invalid config for 'rest' from integration 'sensors' at sensors.yaml, line 51: template valiue should be a string for dictionary value 'params->json_attributes', got ['project','items','sections','project_notes']

To Reproduce Steps to reproduce the behavior:

  1. Go to an editor
  2. Paste code below
  3. Go to dev tool
  4. Try to check the configuration

Versions:

Thanks for your help

julienvedebe commented 3 months ago

I saw also an error in log :

jinja2.exceptions.UndefinedError: 'value_json' is undefined

julienvedebe commented 3 months ago

Sorry issue was on my side (incorrect indent) I close the issue.

pgorod commented 3 months ago

Hi! Sorry, I was away on an Easter vacation, didn't get a chance to reply to you.

Anyway, I am glad it's solved! Cheers