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:
parent
12b0908806
commit
bbbb3a8ebe
@ -60,7 +60,7 @@
|
|||||||
"actions": []
|
"actions": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "battery_life",
|
"property": "battary_life",
|
||||||
"friendlyName": "Battery",
|
"friendlyName": "Battery",
|
||||||
"channel": "battery_life",
|
"channel": "battery_life",
|
||||||
"type": "Number",
|
"type": "Number",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user