Skip to content

Commit

Permalink
Fix "Now line" example from lambda to filters (#211)
Browse files Browse the repository at this point in the history
* Fix "Now line" example from lambda to filters

The example was broken as it was still using lambdas.

* Update readme.md

---------

Co-authored-by: David Buezas <dbuezas@users.noreply.github.com>
  • Loading branch information
edwardtfn and dbuezas committed Jan 30, 2023
1 parent eafffee commit 4cefbab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,18 +352,16 @@ entities:
- entity: sensor.forecast_temperature
yaxis: y1
offset: 3h
- entity: sensor.nothing_now
- entity: ''
name: Now
yaxis: y9
showlegend: false
line:
width: 1
dash: dot
color: deepskyblue
lambda: |-
() => {
return {x:[Date.now(),Date.now()], y:[0,1]}
}
x: $fn () => [Date.now(), Date.now()]
y: $fn () => [0,1]
layout:
yaxis9:
visible: false
Expand Down

0 comments on commit 4cefbab

Please sign in to comment.