Parcourir la source

test (sensor): fix test mapping

Jason Rumney il y a 5 mois
Parent
commit
219d42d6d8
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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,
                     "name": "sensor",
                     "type": "integer",
-                    "mapping": [{"scale: 10"}],
+                    "mapping": [
+                        {
+                            "scale": 10,
+                        }
+                    ],
                 },
             ],
         },