Add associations to sensors

This adds associations to all the sensors on dbus.

Tested: Mapper has lots of sensor associations now.

Change-Id: I9a1c51d6b139e45a228507d29637c29a84b302d9
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/CPUSensor.cpp b/src/CPUSensor.cpp
index a6dc275..955bab4 100644
--- a/src/CPUSensor.cpp
+++ b/src/CPUSensor.cpp
@@ -61,6 +61,10 @@
                 "/xyz/openbmc_project/sensors/temperature/" + name,
                 "xyz.openbmc_project.Sensor.Threshold.Critical");
         }
+        association = objectServer.add_interface(
+            "/xyz/openbmc_project/sensors/temperature/" + name,
+            "org.openbmc.Associations");
+
         setInitialProperties(conn);
     }
     setupPowerMatch(conn);
@@ -77,6 +81,7 @@
         objServer.remove_interface(thresholdInterfaceWarning);
         objServer.remove_interface(thresholdInterfaceCritical);
         objServer.remove_interface(sensorInterface);
+        objServer.remove_interface(association);
     }
 }