Open Shablykinm opened 1 year ago
I would not like to specify the same parameters for each list I would like to minimize the code to the same structure
sensor:
- platform: rest
method: GET
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
headers:
Authorization: !secret todoist_api_token
value_template: '{{ value_json[''project''][''id''] }}'
json_attributes:
- project
- items
scan_interval: 30
resources:
- type: 2313385717
name: tasks
- type: 7234632746
name: homeplans
- type: 7623476234
name: purchases
- type: ....
I have a need to maintain three different lists. Is there any way to simplify the following config?