-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Deprecate and remove extra_html_url
config option
#6028
Comments
many people love and use the custom-ui plugin to add customizations to Homeassistant the current core Lovelace frontend doesn't cater for (global customization), and their frontends depend on that. Some custom cards can customize on an entity or card level, but none have the power nor possibilities of custom-ui. That being the case, Id like to add to this discussion, to please not break custom-ui until then. So let me ask if your plan above will, knowing that Custom-ui can be activated via either
or:
which in itself loads custom-ui again via:
HA110 broke original custom-ui because if the new icon handling, but Bram and I managed to fix that, and people are able to use custom-ui from 110+. Would there be an alternative way to load custom-ui when the 'extra_html_url' would be deprecated? (I take it the customizer way would also fail?) Thanks for considering. |
@Mariusthvdb |
It's about time, but I assume there'll be a two version deprecation warning or so? In the custom-ui case it may just be as simple as removing the first and last lines of |
Oh yeah it is just wrapped in a |
testing... Thanks for the suggestion, how great this would be... just to be sure, the last line now is:
and I change that to
? or should I take out the full line. thought this was a comment, so should not interfere? update my edit above doesnt work.... all customizations are gone. I used this yaml:
There's also no mentioning anymore of any custom-ui in the developer-tools/info |
It was a bit of a long shot, but it could have worked. |
Ah. Try just renaming it from |
no .gz file in my folder, only the html, now .js file. It is loaded, and proof of that is: fear there's a bit more to in than this.. fwiw, Ive loaded it via
which in itself works, as this exercise proofs ;-) |
have to report succes on custom-ui after all. Thomas's suggestions work. I made the edits in the original file, and not my own edited custom-ui file.... really sorry for the confusion. Ive branded the file with and @Supremelink made me see that... here andrey-git/home-assistant-custom-ui#184 (comment) so Thomas: thanks again! |
small update: no longer need the frontend: method for custom-ui, now use resources. Made a rudimentary dedicated repo for easy downloading and instructions. Hope this is ok. All credits to Andrey. |
Time to close? |
The request
We used to allow the user to specify HTML files via
extra_html_url
that we would import into the page. When it became clear that HTML imports were not going to make it, we replaced that withextra_module_url
andextra_js_url_es5
(home-assistant/core#24675 by @thomasloven, June 21, 2019).I think that it's time to deprecate and remove this option. Because we still support this, we have been including it in the main entrypoint of our app, 450 lines of JS 🙄
Note that this does not impact referencing
html
in Lovelace resources.Places to update:
app.ts
<link rel="import"
writer fromindex.html.template
frontend/__init__.py
(in core)The alternatives
Additional information
The text was updated successfully, but these errors were encountered: