Skip to content

Wrap state when iterating a domain in templates#9157

Merged
balloob merged 1 commit into
devfrom
fix-wrap-state-domain-iter
Aug 27, 2017
Merged

Wrap state when iterating a domain in templates#9157
balloob merged 1 commit into
devfrom
fix-wrap-state-domain-iter

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Aug 26, 2017

Description:

When iterating over a domain in templates, it was not wrapped in the template state object.

Example template:

	{% for entity in states.sensor %}
		{{ entity.name }} is {{ entity.state_with_unit }}
	{% endfor %}

@balloob balloob requested a review from a team as a code owner August 26, 2017 23:06
@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.

@balloob balloob merged commit 8605098 into dev Aug 27, 2017
@balloob balloob added this to the 0.52.1 milestone Aug 27, 2017
@balloob balloob deleted the fix-wrap-state-domain-iter branch August 27, 2017 00:01
@balloob balloob mentioned this pull request Aug 28, 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.

4 participants