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 0bed81ab4f/lib/robots/viomi/ViomiValetudoRobot.js (L254)

Signed-off-by: Antonio Tapiador del Dujo <atd@singularities.org>
This commit is contained in:
Antonio Tapiador 2021-03-31 21:44:28 +02:00 committed by GitHub
parent 12b0908806
commit bbbb3a8ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@
"actions": []
},
{
"property": "battery_life",
"property": "battary_life",
"friendlyName": "Battery",
"channel": "battery_life",
"type": "Number",