dbus: util: Remove explicit element count

The dbus interface can have new properties added, and
it's improbable to have the three we care about removed.
Therefore, let's remove the explicit count check on the
number of properties returned.

Change-Id: Ia292c73dc889a33a4b1f334585bbce910f20a580
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/dbus/util.cpp b/dbus/util.cpp
index 692e9c5..7e1f9a5 100644
--- a/dbus/util.cpp
+++ b/dbus/util.cpp
@@ -68,11 +68,7 @@
     PropertyMap propMap;
     valueResponseMsg.read(propMap);
 
-    if (propMap.size() != 3)
-    {
-        throw std::runtime_error("ERROR in results, expected three properties");
-    }
-
+    // If no error was set, the values should all be there.
     prop->unit = sdbusplus::message::variant_ns::get<std::string>(propMap["Unit"]);
     prop->scale = sdbusplus::message::variant_ns::get<int64_t>(propMap["Scale"]);
     prop->value = sdbusplus::message::variant_ns::get<int64_t>(propMap["Value"]);