Closed poldim closed 3 years ago
Great feedback thanks. Let me work on it this weekend and get back to you with an update. I am a bit of a novice on writing custom integrations myself. Meanwhile you are completing the form correctly so everything should work correctly.
I tried to reproduce your results. Here is what I see in my browser:
So I cannot reproduce your result. I looked at your reference adguard and I do not see anything different from what I did. The displayed text in both cases is coming from the file "strings.json". Did you use the same browser to create both of those screen shots? I wonder if this could be one of the annoying rendering incompatibilities. As far as I know (which is not much) there is nothing I can do inside a custom component to change anything about the way things are displayed. This is all under the control of the HA environment. I will Google around a bit to see if I can find anyone else with a similar issue but am otherwise not sure what I can do.
The browser I am using is:
Very odd. I mainly use Chrome but also tried this with Safari on Mac and iOS within HA app which IIRC should be using same-ish webkit rendering engine. Using the default theme during the daytime.
I reproduced your result with Chrome. I found that if I flushed my browser cache the text appeared. But as all the text was not visible in any browser due to its length I shorted these descriptions. And I also made 'localhost' the default for the host address as this makes this descriptive font smaller and more fits. Weird browser juju I don't enjoy.
I think it is improved, thanks for your input on this. I am closing this issue.
The form that pops up when adding the integration is missing the names of the fields.
As a comparison, here's the one for adguard: https://github.com/home-assistant/core/blob/master/homeassistant/components/adguard/config_flow.py