Skip to content

State persist :new_attributes={} doesn't clear attributes #792

@stefanuytterhoeven

Description

@stefanuytterhoeven

state.set("pyscript.testname","started",new_attributes={})
doesn't remove the attributes.

also, earlier defined persistent pyscript.xxx variable don't get removed when not used.

Is there a way to remove persistent pyscript.xxx variables? when programming, I've tried different naming... and now I have several persisted pyscript variables that don't disappear. And I can't remove them on the entities screen, because they haven't got a unique id. Also, homeassistant.remove_entity_from_area (without specifying an area) doesn't remove it.

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