#HACS lovelace mode

1 messages ยท Page 1 of 1 (latest)

vocal river
#

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.

tame arch
vocal river
#

hacs always register ressource even if the resource mode is yaml. Which is great, they are just not loaded

tame arch
#

does it? its not supposed to, thats a bug ๐Ÿ™ƒ

vocal river
#
resources = lovelace_data.get("resources")
#

Only resources, key.

#

Mode key is not used

tame arch
#

seems ok then! ๐Ÿคž ๐Ÿ˜„

vocal river
#

hacs checks if yaml resources are empty or not

#

Which is different from HA logic. HA is checking if mode is yaml

tame arch
#

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.

tame arch
#

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

tame arch
#

Would it be possible to have "mode" as an alias for "resource_mode" for half a year?