Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Padding disappears after HomeAssistant "text" update. #855

Open
PedroC1999 opened this issue Jan 22, 2025 · 0 comments
Open

Padding disappears after HomeAssistant "text" update. #855

PedroC1999 opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@PedroC1999
Copy link

PedroC1999 commented Jan 22, 2025

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

@PedroC1999 PedroC1999 added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant