]> git.basschouten.com Git - openhab-addons.git/commit
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)
commitbbbb3a8ebecdff87019fd062466cbd6dc9044d01
tree01e59dc73c9b4b0182dbd546b91d475fe0c45ec5
parent12b0908806d9f482960a0fd6e3d7106900101d2a
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 <atd@singularities.org>
bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json