Skip to content

Seems to fail when states values contain spaces #116

Open
@cperrier

Description

@cperrier

It seems that when the tested entity's status contains a space character, the card that should be displayed isn't.
That happens for instance with the following

type: custom:state-switch entity: sensor.template_lixee_zlinky_tic_tarif_fournisseur states: HC BLEU: type: vertical-stack cards: - type: markdown content: Heures Creuses Jour **BLEU**

I expect a simple markdown card with "Heures Creuses tarif BLEU" to appear as soon as the value of the referenced sensor is "HC BLEU". It actually works with a simple conditional card, but not with state-switch....while whenever the sensor has a value that does NOT contain any space, it works as expected.

I tried quoting the expected states values (with double or single quotes, whatever), but nothing has been helpful.

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