7eaf8640d09b792f70b830ca82fe2dbc5eb267e3,tests/components/cover/test_template.py,TestTemplateCover,test_open_action,#TestTemplateCover#,337
Before Change
state = self.hass.states.get("cover.test_template_cover")
assert state.state == STATE_CLOSED
cover.open_cover(self.hass, "cover.test_template_cover")
self.hass.block_till_done()
assert len(self.calls) == 1
After Change
state = self.hass.states.get("cover.test_template_cover")
assert state.state == STATE_CLOSED
self.hass.services.call(
DOMAIN, SERVICE_OPEN_COVER,
{ATTR_ENTITY_ID: ENTITY_COVER}, blocking=True)
self.hass.block_till_done()
assert len(self.calls) == 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 7eaf8640d09b792f70b830ca82fe2dbc5eb267e3
Time: 2018-09-25
Author: 30130371+cdce8p@users.noreply.github.com
File Name: tests/components/cover/test_template.py
Class Name: TestTemplateCover
Method Name: test_open_action
Project Name: home-assistant/home-assistant
Commit Name: 7eaf8640d09b792f70b830ca82fe2dbc5eb267e3
Time: 2018-09-25
Author: 30130371+cdce8p@users.noreply.github.com
File Name: tests/components/cover/test_template.py
Class Name: TestTemplateCover
Method Name: test_set_position
Project Name: home-assistant/home-assistant
Commit Name: 7eaf8640d09b792f70b830ca82fe2dbc5eb267e3
Time: 2018-09-25
Author: 30130371+cdce8p@users.noreply.github.com
File Name: tests/components/cover/test_template.py
Class Name: TestTemplateCover
Method Name: test_set_position_optimistic