Ver código fonte

test (sensor): fix test mapping

Jason Rumney 4 meses atrás
pai
commit
219d42d6d8
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      tests/test_sensor.py

+ 5 - 1
tests/test_sensor.py

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