Skip to content

Commit

Permalink
Fix battary_life property
Browse files Browse the repository at this point in the history
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
  • Loading branch information
atd authored Mar 26, 2021
1 parent 506ef2e commit e59a7b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"actions": []
},
{
"property": "battery_life",
"property": "battary_life",
"friendlyName": "Battery",
"channel": "battery_life",
"type": "Number",
Expand Down

0 comments on commit e59a7b9

Please sign in to comment.