sdbus++: aserver: fix method parameter unpack

If there is only a single parameter to a method call, the unpack
function on message does not return a tuple but a value.  We should
only use the structured-binding syntax when there are multiple
parameters.  Update the mako template accordingly.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I41d7dfc1966383cfc94629e50bc494b7a42ecaf9
diff --git a/tools/sdbusplus/templates/method.aserver.callback.hpp.mako b/tools/sdbusplus/templates/method.aserver.callback.hpp.mako
index d2493d0..20ad4ad 100644
--- a/tools/sdbusplus/templates/method.aserver.callback.hpp.mako
+++ b/tools/sdbusplus/templates/method.aserver.callback.hpp.mako
@@ -25,7 +25,9 @@
         try
         {
             auto m = sdbusplus::message_t{msg};
-% if m_param_count:
+% if m_param_count == 1:
+            auto ${m_param} = m.unpack<${m_ptypes}>();
+% elif m_param_count:
             auto [${m_param}] = m.unpack<${m_ptypes}>();
 % endif