rogro82 / hass-variables

Home Assistant variables component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I delete an attribute?

JeeCee1 opened this issue · comments

Sorry if I've read over it, but I can't find a way to delete an added attribute.

Thanks for your efforts and help!

Hello.
It happens to my setup too.
Furthermore, if I delete variable and then re-add it, Hassio seems to add the old configuration of it.
For example, if initial variable is of type boolean than re-adding it as integer seems to have no effect as it still holds boolean as well as an attribute which doesn't exist in the configuration anymore.

Current config:

variable:
  dustbin_full:
    value: 0
    restore: true

Previous config:

variable:
  dustbin_full:
    value: False
    attributes:
      previous: 0
    restore: true

Variable states export from DB:
states-export.zip