From 20bda53af26d2c231a921fb731b268bf6e8e301c Mon Sep 17 00:00:00 2001 From: ando2040 <153862115+ando2040@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:59:13 +0000 Subject: [PATCH] Update readme.md additional gotcha Entity filters are not additive gotcha --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index aa0fdb8..8f3a064 100644 --- a/readme.md +++ b/readme.md @@ -815,8 +815,9 @@ Remember you can add a `console.log(the_object_you_want_to_inspect)` and see its - You can get other values from the yaml with the `getFromConfig` parameter, but if they are functions they need to be defined before. - Any function which uses the result of a filter, needs to be placed in the YAML below the filter. For instance, `name: $ex ys.at(-1)` where the filter is modifying `ys`. - The same is true of consecutive filters - order matters. This is due to the fact that filters are translated internally to function calls, executed in the order they are parsed. +- Entity filters *replace* default filters, they are not additive. If you add a single filter to an entity, all the filters that were previously defaults, need declaring explicitly to that entity. See [#505] (https://github.com/dbuezas/lovelace-plotly-graph-card/discussions/505) -#### Adding the last value to the entitiy's name +#### Adding the last value to the entity's name ```yaml type: custom:plotly-graph