Add dbus interfaces to entity-manager

This adds dbus endpoints to the entity manager to
export available configurations. For more information
see docs folder in this repository.

This also reformats the json records to make thresholds
1-d arrays.

Change-Id: Iae5b9aa2bf5017ce2a24ec6b149ccdbc2fe70202
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/configurations/STP P4000 Chassis.json b/configurations/STP P4000 Chassis.json
index bc462ea..cd35350 100644
--- a/configurations/STP P4000 Chassis.json
+++ b/configurations/STP P4000 Chassis.json
@@ -4,20 +4,18 @@
             "bind_connector": "4U System Fan connector 1",
             "name": "Fan 1",
             "thresholds": [
-                [
-                    {
-                        "direction": "less than",
-                        "name": "lower critical",
-                        "severity": 1,
-                        "value": 1750
-                    },
-                    {
-                        "direction": "less than",
-                        "name": "lower non critical",
-                        "severity": 0,
-                        "value": 2000
-                    }
-                ]
+                {
+                    "direction": "less than",
+                    "name": "lower critical",
+                    "severity": 1,
+                    "value": 1750
+                },
+                {
+                    "direction": "less than",
+                    "name": "lower non critical",
+                    "severity": 0,
+                    "value": 2000
+                }
             ],
             "type": "AspeedFan"
         },
@@ -25,20 +23,18 @@
             "bind_connector": "4U System Fan connector 2",
             "name": "Fan 2",
             "thresholds": [
-                [
-                    {
-                        "direction": "less than",
-                        "name": "lower critical",
-                        "severity": 1,
-                        "value": 1750
-                    },
-                    {
-                        "direction": "less than",
-                        "name": "lower non critical",
-                        "severity": 0,
-                        "value": 2000
-                    }
-                ]
+                {
+                    "direction": "less than",
+                    "name": "lower critical",
+                    "severity": 1,
+                    "value": 1750
+                },
+                {
+                    "direction": "less than",
+                    "name": "lower non critical",
+                    "severity": 0,
+                    "value": 2000
+                }
             ],
             "type": "AspeedFan"
         },
@@ -46,20 +42,18 @@
             "bind_connector": "4U System Fan connector 3",
             "name": "Fan 3",
             "thresholds": [
-                [
-                    {
-                        "direction": "less than",
-                        "name": "lower critical",
-                        "severity": 1,
-                        "value": 1750
-                    },
-                    {
-                        "direction": "less than",
-                        "name": "lower non critical",
-                        "severity": 0,
-                        "value": 2000
-                    }
-                ]
+                {
+                    "direction": "less than",
+                    "name": "lower critical",
+                    "severity": 1,
+                    "value": 1750
+                },
+                {
+                    "direction": "less than",
+                    "name": "lower non critical",
+                    "severity": 0,
+                    "value": 2000
+                }
             ],
             "type": "AspeedFan"
         },
@@ -67,20 +61,18 @@
             "bind_connector": "4U System Fan connector 4",
             "name": "Fan 4",
             "thresholds": [
-                [
-                    {
-                        "direction": "less than",
-                        "name": "lower critical",
-                        "severity": 1,
-                        "value": 1750
-                    },
-                    {
-                        "direction": "less than",
-                        "name": "lower non critical",
-                        "severity": 0,
-                        "value": 2000
-                    }
-                ]
+                {
+                    "direction": "less than",
+                    "name": "lower critical",
+                    "severity": 1,
+                    "value": 1750
+                },
+                {
+                    "direction": "less than",
+                    "name": "lower non critical",
+                    "severity": 0,
+                    "value": 2000
+                }
             ],
             "type": "AspeedFan"
         },
@@ -88,20 +80,18 @@
             "bind_connector": "4U System Fan connector 5",
             "name": "Fan 5",
             "thresholds": [
-                [
-                    {
-                        "direction": "less than",
-                        "name": "lower critical",
-                        "severity": 1,
-                        "value": 1750
-                    },
-                    {
-                        "direction": "less than",
-                        "name": "lower non critical",
-                        "severity": 0,
-                        "value": 2000
-                    }
-                ]
+                {
+                    "direction": "less than",
+                    "name": "lower critical",
+                    "severity": 1,
+                    "value": 1750
+                },
+                {
+                    "direction": "less than",
+                    "name": "lower non critical",
+                    "severity": 0,
+                    "value": 2000
+                }
             ],
             "type": "AspeedFan"
         },
@@ -109,24 +99,26 @@
             "bind_connector": "4U System Fan connector 6",
             "name": "Fan 6",
             "thresholds": [
-                [
-                    {
-                        "direction": "less than",
-                        "name": "lower critical",
-                        "severity": 1,
-                        "value": 1750
-                    },
-                    {
-                        "direction": "less than",
-                        "name": "lower non critical",
-                        "severity": 0,
-                        "value": 2000
-                    }
-                ]
+                {
+                    "direction": "less than",
+                    "name": "lower critical",
+                    "severity": 1,
+                    "value": 1750
+                },
+                {
+                    "direction": "less than",
+                    "name": "lower non critical",
+                    "severity": 0,
+                    "value": 2000
+                }
             ],
             "type": "AspeedFan"
         }
     ],
     "name": "P4000 Chassis",
-    "probe": ["FOUND('STP Baseboard')", "AND", "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'FFPANEL'})"]
-}
+    "probe": [
+        "FOUND('STP Baseboard')",
+        "AND",
+        "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'FFPANEL'})"
+    ]
+}
\ No newline at end of file