]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix battary_life property (#10394)
authorAntonio Tapiador <atd@singularities.org>
Wed, 31 Mar 2021 19:44:28 +0000 (21:44 +0200)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 19:44:28 +0000 (21:44 +0200)
Viomi's property battery life seems to have a weird typo. The property's real name is `battary_life` instead of `battery_life`. Using the wrong name `battery_life` makes the other properties in the batch to be undefined: `"run_state","mode","err_state","battary_life","box_type"`

The correct name `battary_life` is already used in other projects like https://github.com/rytilahti/python-miio/blob/master/miio/viomivacuum.py#L316 or https://github.com/Hypfer/Valetudo/blob/0bed81ab4f0ddccdad044ce805dda3af8736eb96/lib/robots/viomi/ViomiValetudoRobot.js#L254

Signed-off-by: Antonio Tapiador del Dujo <atd@singularities.org>
bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json

index 5eb3298cab590f8ee6229d4ae86874d246306d9f..6aa4387dd99625c1762b18245e0d18b095c5af28 100644 (file)
@@ -60,7 +60,7 @@
                                "actions": []
                        },
                        {
-                               "property": "battery_life",
+                               "property": "battary_life",
                                "friendlyName": "Battery",
                                "channel": "battery_life",
                                "type": "Number",