Skip to content

Jinja2 templates will spam network requests. #47

@bratanon

Description

@bratanon

When using the jinja2 template, this card will request the template endpoint multiple times every second.

  - entity: light.entrance_outdoor    
    type: "custom:secondaryinfo-entity-row"
    secondary_info: "{{ 1 + 1 }}"

image

Guess this is because _updateElement will trigger as soon as something changes in the hass object, which for a larger setup could be many hundred times per second.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions