7eaf8640d09b792f70b830ca82fe2dbc5eb267e3,tests/components/cover/test_template.py,TestTemplateCover,test_set_position_optimistic,#TestTemplateCover#,567

Before Change


        state = self.hass.states.get("cover.test_template_cover")
        assert state.attributes.get("current_position") == 42.0

        cover.close_cover(self.hass, "cover.test_template_cover")
        self.hass.block_till_done()
        state = self.hass.states.get("cover.test_template_cover")
        assert state.state == STATE_CLOSED

After Change


        state = self.hass.states.get("cover.test_template_cover")
        assert state.attributes.get("current_position") == 42.0

        self.hass.services.call(
            DOMAIN, SERVICE_CLOSE_COVER,
            {ATTR_ENTITY_ID: ENTITY_COVER}, blocking=True)
        self.hass.block_till_done()
        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()
        state = self.hass.states.get("cover.test_template_cover")
        assert state.state == STATE_OPEN
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

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_set_position_optimistic


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


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_close_stop_action