FS#78323 - [home-assistant] Missing Text Labels (Frontend)

Attached to Project: Community Packages
Opened by Yu Tendo (YuTendo) - Friday, 28 April 2023, 20:34 GMT
Last edited by Maxime Gauduin (Alucryd) - Sunday, 14 May 2023, 20:29 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Alexander Epaneshnikov (alex19EP)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

The configuration dialog of the MQTT integration (no third party) has no text labels. The input fields are there and the dialog is fully functional. I do not use any third party themes.

Example 1 / Steps to reproduce
Settings -> Devices & Services -> Add Integration -> Search for "MQTT" -> Select "MQTT" -> The dialog has no text labels.

Example 2 / Steps to reproduce
After the integration is completed (by guessing the meaning of the input fields), also the "Re-Configure MQTT" Dialog has no text labels (see attached image as an example).

Further Details:
- The issue occurs with Firefox, Chrome, and also using the Android App
- I first asked about this issue in the official forum and on Discord but without any result (https://community.home-assistant.io/t/the-text-labels-are-missing-in-the-mqtt-configuration-dialog/563808)
- I did inspect the frontend with the Web Developer Tools in Firefox but couldn't find any error
- I checked the logfiles on server side -no errors

I literally have no idea what is causing this issue. I am happy about any thoughts! Thank you :)
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Sunday, 14 May 2023, 20:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  2023.5.2-2
Comment by Pauli Kettunen (pauligrinder) - Saturday, 29 April 2023, 09:43 GMT
I have this same issue on an up to date installation of Arch Linux ARM. Labels are also missing in other configuration dialogs, for example the Generic Camera dialog.
Comment by Pauli Kettunen (pauligrinder) - Sunday, 30 April 2023, 03:28 GMT
I tested various versions: on version 2023.2.5 and earlier this issue does not occur, but 2023.3.x and later it does. Maybe this helps in fixing it.

Update: I installed the most recent version directly using PIP, and this bug doesn't occur there. So it seems like the Arch Linux specific package is missing something. I even built the most recent version using this PKGBUILD, just changed version numbers and git-tags, and the same bug occurs even though it doesn't when installed via pip.

Maybe we should convert this into a meta-package that actually installs directly via pip?
Comment by Pauli Kettunen (pauligrinder) - Friday, 05 May 2023, 13:26 GMT
Ok, I found the reason for the missing labels. All the translation .json-files are missing from the arch linux package (they were probably in the frontend which is installed via Pip before and got moved between 2023.2 and 2023.3). I copied them from the pip-package and now I have labels again.
Comment by Pauli Kettunen (pauligrinder) - Monday, 08 May 2023, 10:09 GMT
To the maintainer: I figured out how to solve this issue.

The following command needs to be added to the PKGBUILD:

python -m script.translations develop --all

I added it to the build() function, before calling python -m build and that fixed the bug, but I suppose it might make more sense to call it in prepare()?

Also I'm not sure what the parameter "develop" does, I just copied this from the pip-installer. There might be a production-replacement for it. Either way, this fixes the bug.
Comment by Maxime Gauduin (Alucryd) - Sunday, 14 May 2023, 20:28 GMT
Thanks Paul, this has been added to the repo package.

Loading...