'Test setting cover position via template.'

def test_set_position_untemplated(self):

    self.assertTrue(setup_component(self.hass, cover.DOMAIN, {cover.DOMAIN: {'platform': 'mqtt', 'name': 'test', 'state_topic': 'state-topic', 'command_topic': 'command-topic', 'set_position_topic': 'position-topic', 'payload_open': 'OPEN', 'payload_close': 'CLOSE', 'payload_stop': 'STOP'}}))
    cover.set_cover_position(self.hass, 62, 'cover.test')
    self.hass.block_till_done()
    self.assertEqual(('position-topic', 62, 0, False), self.mock_publish.mock_calls[(-2)][1])
