-
-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Perform all steps below and tick them with [x]
- [x ] Check the related part of the Documentation
- [x ] Update openHASP to the latest version
- [x ] Reproduce the issue and describe all steps
Describe the bug
When updating the text on a button from HomeAssistant, the "Pad_left" property is removed, and I cannot seem to make it work.
No combination of "align", "pad_left" or "pad_left00" in the homeassistant config restpres the padding that was initially there in the default jsonl file before an event occurs.
To Reproduce
{ "page" : 1, "id" : 31, "obj" : "btn", "x" : 15, "y" : 10, "w" : 180, "h" : 80, "parentid" : 30, "toggle" : true, "text" : "\uE335 Bedroom", "mode" : "break", "align" : "left", "radius" : 10, "pad_left" : 8 }
# bedroom light toggle
- obj: "p1b31"
properties:
"val": '{{ 1 if is_state("light.bedroom", "on") else 0 }}'
"text": '{{ "\uE6E8 Bedroom" if is_state("light.bedroom", "on") else "\uE335 Bedroom" | e }}'
"align": "left"
"pad_left": "8"
"pad_left00": "8"
event:
"down":
- service: homeassistant.toggle
entity_id: "light.bedroom"
Expected behavior
Updating the text should not affect the padding, and even if it does, defining the padding in the homeassistant config should restore it
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working