Skip to content

Commit f44325f

Browse files
authored
Update README.md
along RomRider/apexcharts-card#671
1 parent da2d75c commit f44325f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ Some of the things you can do:
420420

421421
Your javascript code will receive:
422422
* `x`: a state or a value of the attribute if you defined one (it can be a `string`, `null` or a `number` depending on the entity type you've assigned)
423-
* `hass`: the full `hass` object (`hass.states['other.entity']` to get the state object of another entity for eg.)
423+
* `hass`: the full `hass` object (e.g. use `hass.states['other.entity'].state` to get the state object of another entity)
424424
* `entity`: the full state object of the entity from the history entry currently being transformed
425425

426426
And should return a `number`, a `float` or `null`.
@@ -460,7 +460,7 @@ Inside your javascript code, you'll have access to those variables:
460460
* `entity`: the entity object
461461
* `start` (Date object): the start Date object of the graph currently displayed
462462
* `end` (Date object): the end Date object of the graph currently displayed
463-
* `hass`: the complete `hass` object
463+
* `hass`: the complete `hass` object (e.g. use `hass.states['other.entity'].state` to get the state object of another entity)
464464
* `moment`: the [Moment.JS](https://momentjs.com/) object to help you manipulate time and dates
465465

466466
Let's take this example:

0 commit comments

Comments
 (0)