Browse Source

tests (sensor): simplify mapping

Jason Rumney 7 tháng trước cách đây
mục cha
commit
da5ccb17f1
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      tests/test_sensor.py

+ 1 - 5
tests/test_sensor.py

@@ -124,11 +124,7 @@ def test_sensor_suggested_display_precision():
                     "id": 1,
                     "id": 1,
                     "name": "sensor",
                     "name": "sensor",
                     "type": "integer",
                     "type": "integer",
-                    "mapping": [
-                        {
-                            "scale": 10,
-                        }
-                    ],
+                    "mapping": [{"scale": 10}],
                 },
                 },
             ],
             ],
         },
         },