Skip to content

Example script script_use_zha_devices_response.yaml results in error: Error: Repeat 'for_each' must be a list of items #288

@varenc

Description

@varenc

I'm just trying to run this example script directly: https://github.com/mdeweerd/zha-toolkit/blob/main/examples/script_use_zha_devices_response.yaml

I get this error: Error: Repeat 'for_each' must be a list of items

Specifically on this part:

repeat:
  for_each: '{{ dev_data.devices }}'
  sequence:
     ...

Based on the logs dev_data.devices really looks like a Python/JSON list though. Tried to ... | list or ... | default([]) and still no luck. Can't figure out why it's not behaving list a list.

Running latest HACS version of zha-toolkit on the latest version of HA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions