'Test that at least one of value or position template is used.'

def test_template_position_or_value(self):

    with assert_setup_component(1, 'cover'):
        assert setup.setup_component(self.hass, 'cover', {'cover': {'platform': 'template', 'covers': {'test_template_cover': {'open_cover': {'service': 'cover.open_cover', 'entity_id': 'cover.test_state'}, 'close_cover': {'service': 'cover.close_cover', 'entity_id': 'cover.test_state'}}}}})
    self.hass.start()
    self.hass.block_till_done()
    assert (self.hass.states.all() == [])
