Skip to content

Commit 20bda53

Browse files
authored
Update readme.md additional gotcha
Entity filters are not additive gotcha
1 parent afc72e2 commit 20bda53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,9 @@ Remember you can add a `console.log(the_object_you_want_to_inspect)` and see its
815815
- You can get other values from the yaml with the `getFromConfig` parameter, but if they are functions they need to be defined before.
816816
- 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`.
817817
- 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.
818+
- 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)
818819

819-
#### Adding the last value to the entitiy's name
820+
#### Adding the last value to the entity's name
820821

821822
```yaml
822823
type: custom:plotly-graph

0 commit comments

Comments
 (0)