Skip to content

Allow getting number of available states in template#9158

Merged
pvizeli merged 1 commit into
devfrom
template-enhancements
Aug 27, 2017
Merged

Allow getting number of available states in template#9158
pvizeli merged 1 commit into
devfrom
template-enhancements

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Aug 27, 2017

Description:

Allow calculating the size of the states in a template.

Example template:

{{ states | length }}
{{ states.sensor | length }}

@balloob balloob requested a review from a team as a code owner August 27, 2017 00:45
@mention-bot
Copy link
Copy Markdown

@balloob, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fabaff, @lwis and @antsar to be potential reviewers.

@pvizeli pvizeli merged commit 5629157 into dev Aug 27, 2017
@balloob balloob deleted the template-enhancements branch August 27, 2017 16:40
@balloob balloob mentioned this pull request Sep 7, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants