home-assistant / home-assistant/android

Action button widget inserts spaces into Rgb color field, breaking action

Open
#6,166 0 comments 0 reactions 0 assignees View on GitHub
bug widget
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

I've discovered a fault which breaks the action button widget in some circumstances. The fault occurs when you make a change to an existing widget that has an RGB value saved (eg for me, it's a light.turn_on at a set rgb color and brightness).

The first time you add an RGB value (eg 255,1,128), the widget saves and works fine.

However if you edit that widget, you'll see spaces have been inserted by the app (eg 255, 1, 128). If you save changes to that widget, the spaces are saved (no warning message) but the widget stops working.

Removing the spaces makes that widget function again (but this needs to be done manually each time the widget is edited).

Fix required (I suggest) - stop these spaces being inserted and/or strip spaces from that field.

**Home Assistant Android app version(s):**
2025.11.4-full

**Android version(s):**
16

**Device model(s):**
Samsung s23

**Home Assistant version:**
2025.12.3 / 16.3 / 20251203.2

**Last working Home Assistant release (if known):**
Na

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.