From bbbb3a8ebecdff87019fd062466cbd6dc9044d01 Mon Sep 17 00:00:00 2001 From: Antonio Tapiador Date: Wed, 31 Mar 2021 21:44:28 +0200 Subject: [PATCH] Fix battary_life property (#10394) 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 --- .../src/main/resources/database/viomi.vacuum.v8.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json b/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json index 5eb3298ca..6aa4387dd 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json @@ -60,7 +60,7 @@ "actions": [] }, { - "property": "battery_life", + "property": "battary_life", "friendlyName": "Battery", "channel": "battery_life", "type": "Number",