Skip to content

Missing space in the info screen #3695

Open
@gsieben

Description

@gsieben

What happened?

I am currently programming a usermod for the BMP680 sensor. I noticed that there is no space between the value and the unit on the info screen. In my opinion, this is a design bug. Because a unit must not contain a space. If you use the same units for HomeAssistant, you get an error message because of the space.

grafik

To Reproduce Bug

See the screen shot above

Expected Behavior

Spaces between value and unit

Install Method

Self-Compiled

What version of WLED?

WLED 0.14.1 build 2401141

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

I have already solved the problem for myself.

File: wled00/data/index.js
Line: 668

urows += inforow(k,val[0],val[1]);

changed to:

urows += inforow(k,val[0]," "+val[1]);

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionkeepThis issue will never become stale/closed automaticallyworkaroundThe issue contains a workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions