Add display count. Fix #41

This commit is contained in:
2019-11-19 16:04:17 +01:00
parent eccd2d0cf2
commit 42315226bd
3 changed files with 8 additions and 1 deletions

View File

@@ -156,12 +156,15 @@ sort:
reverse: <reverse>
ignore_case: <ignore_case>
attribute: <attribute>
first: <first>
count: <count>
```
- `method:` **Required** One of `domain`, `entity_id`, `name`, `state` or `attribute`
- `reverse:` Set to `true` to reverse the order. Default: `false`.
- `ignore_case:` Set to `true` to make the sort case-insensitive. Default: `false`.
- `attribute:` Attribute to sort by if `method: attribute`. Can be an *object attribute* as above (e.g. `attribute: rgb_color:2`)
- `first` and `count` can be used to only display `<count>` entities, starting with the `<first>` (starts with 0).
## Examples