Skip to content

Commit 230ae96

Browse files
committed
Add explanations and alternatives to the deprecated options in the readme
1 parent 8b7a78c commit 230ae96

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

readme.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,70 @@ refresh_interval: 0 # never update.
939939
refresh_interval: 5 # update every 5 seconds
940940
```
941941

942+
# deprecations:
943+
944+
### `#no_theme`
945+
946+
Renamed to `ha_theme` (inverted logic) in v3.0.0
947+
948+
### `no_default_layout`
949+
950+
Replaced with more general `raw_plotly_config` in v3.0.0.
951+
If you were using it, you most likely can delete it and add this to your yaxes defaults:
952+
953+
```yaml
954+
defaults:
955+
yaxes:
956+
side: left
957+
overlaying: "y"
958+
visible: true
959+
```
960+
961+
### `offset`
962+
963+
Renamed to time_offset in v3.0.0 to avoid conflicts with PlotlyJS bar offset configuration.
964+
965+
### `lambda`
966+
967+
Removed in v3.0.0, use filters instead. There is most likely a filter (or combination) that will give you the same result, but you can also translate an old lambda to a filter like this:
968+
969+
```yaml
970+
lambda: |
971+
(ys,xs) => {
972+
...
973+
return {x: arr_x, y: arr_y};
974+
}
975+
# becomes
976+
filters:
977+
- fn: |
978+
({ys,xs}) => {
979+
...
980+
return {xs: arr_x, ys: arr_y};
981+
}
982+
```
983+
984+
and
985+
986+
```yaml
987+
lambda: |
988+
(ys) => ys.map(y => y+1...etc...)
989+
# becomes
990+
filters:
991+
- map_y: ys.map(y => y+1...etc...)
992+
```
993+
994+
### `entities/show_value/right_margin`
995+
996+
Removed in v3.0.0, use `show_value: true` instead and if necessary, set the global `time_offset` or `layout.margins.r` to make extra space to the right.
997+
998+
### significant_changes_only
999+
1000+
Removed in v3.0.0, non significant changes are also fetched now. The bandwidth savings weren't worth the issues it created.
1001+
1002+
### minimal_response
1003+
1004+
Removed in v3.0.0, if you need access to the attributes use the 'attribute' parameter instead. It doesn't matter which attribute you pick, all of them are still accessible inside filters and universal functions
1005+
9421006
# Development
9431007

9441008
- Clone the repo

0 commit comments

Comments
 (0)