Browse Source

test (sensor): fix test mapping

Jason Rumney 5 months ago
parent
commit
219d42d6d8
1 changed files with 5 additions and 1 deletions
  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,
+                        }
+                    ],
                 },
             ],
         },