'Test the setting of the target temperature.'

def test_set_only_target_temp_with_convert(self):

    state = self.hass.states.get(ENTITY_HEATPUMP)
    self.assertEqual(20, state.attributes.get('temperature'))
    climate.set_temperature(self.hass, 21, ENTITY_HEATPUMP)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_HEATPUMP)
    self.assertEqual(21.0, state.attributes.get('temperature'))
