Add retries into get sensor configuration

This adds retries into get sensor configuration and updates
fan sensor to use retries.

Tested:
- Sensors showed up as normal.
- Did a reboot bmc test where I saw retries get attempted
successfully.

Change-Id: I431f49c34b8e6376fee948b6ab06f426efcc5ba7
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/FanMain.cpp b/src/FanMain.cpp
index 73937cc..e8f1fff 100644
--- a/src/FanMain.cpp
+++ b/src/FanMain.cpp
@@ -87,7 +87,8 @@
         pwmSensors,
     std::shared_ptr<sdbusplus::asio::connection>& dbusConnection,
     const std::shared_ptr<boost::container::flat_set<std::string>>&
-        sensorsChanged)
+        sensorsChanged,
+    size_t retries = 0)
 {
 
     auto getter = std::make_shared<GetSensorConfiguration>(
@@ -377,7 +378,8 @@
             }
         }));
     getter->getConfiguration(
-        std::vector<std::string>{sensorTypes.begin(), sensorTypes.end()});
+        std::vector<std::string>{sensorTypes.begin(), sensorTypes.end()},
+        retries);
 }
 
 void createRedundancySensor(
@@ -475,7 +477,7 @@
                     return;
                 }
                 createSensors(io, objectServer, tachSensors, pwmSensors,
-                              systemBus, sensorsChanged);
+                              systemBus, sensorsChanged, 5);
             });
         };