sensorhandler: Refactor find_openbmc_path to check sensor map first

Change-Id: I846d538643af77705d5160bf4d9127f758b5c749
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
diff --git a/storageaddsel.cpp b/storageaddsel.cpp
index b8b7a8d..9cebf9e 100644
--- a/storageaddsel.cpp
+++ b/storageaddsel.cpp
@@ -58,7 +58,7 @@
 	const char *p;
 	int r;
 
-	r = find_openbmc_path("SENSOR", sensor_number, &a);
+	r = find_openbmc_path(sensor_number, &a);
 
 	if ((r < 0) || (a.bus[0] == 0)) {
 		// Just make a generic message for errors that
@@ -140,7 +140,7 @@
 
 	sensor = p->sensornumber;
 
-	find_openbmc_path("SENSOR", sensor, &dbusint);
+	find_openbmc_path(sensor, &dbusint);
 
 	// Simply no associations if the sensor can not be found
 	if (strlen(dbusint.path) < 1) {