sensorhandler: Refactor find_openbmc_path to check sensor map first

Change-Id: I846d538643af77705d5160bf4d9127f758b5c749
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
diff --git a/testaddsel.cpp b/testaddsel.cpp
index 4023629..90f63a2 100644
--- a/testaddsel.cpp
+++ b/testaddsel.cpp
@@ -15,7 +15,7 @@
 // Use a lookup table to find the interface name of a specific sensor
 // This will be used until an alternative is found.  this is the first
 // step for mapping IPMI
-int find_openbmc_path(const char *type, const uint8_t num, dbus_interface_t *interface) {
+int find_openbmc_path(const uint8_t num, dbus_interface_t *interface) {
 
     const char  *objname = "/org/openbmc/managers/System";