#HACS lovelace mode
1 messages ยท Page 1 of 1 (latest)
I already fixed an issue for the bambu lab integration https://github.com/greghesp/ha-bambulab/pull/1865 ๐
I checked hacs codebase and hacs is using it to know if cache is needed or not
It's not using lovelacedata directly by system health mode.
https://github.com/hacs/integration/blob/main/custom_components/hacs/repositories/plugin.py#L173 it is definitly using lovelace data directly
hacs always register ressource even if the resource mode is yaml. Which is great, they are just not loaded
does it? its not supposed to, thats a bug ๐
resources = lovelace_data.get("resources")
Only resources, key.
Mode key is not used
seems ok then! ๐ค ๐
hacs checks if yaml resources are empty or not
Which is different from HA logic. HA is checking if mode is yaml
I remember when I did this, I added a lot of guards so if lovelace changed, maybe it would stop registering, but it would not break the rest of it.
Ah ok, I see now, so it will just setup the view without cache
I guess for some thats a win (sticky mobile clients), but will hurt preformance
Would it be possible to have "mode" as an alias for "resource_mode" for half a year?