Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[miio] Fix viomi's battary_life property #10394

Merged
merged 1 commit into from
Mar 31, 2021
Merged

Conversation

atd
Copy link
Contributor

@atd atd commented Mar 26, 2021

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"

nan-values

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

@atd atd requested a review from marcelrv as a code owner March 26, 2021 21:16
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>
Copy link
Contributor

@marcelrv marcelrv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.. LGTM

@kaikreuzer kaikreuzer merged commit bbbb3a8 into openhab:main Mar 31, 2021
@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Mar 31, 2021
@kaikreuzer kaikreuzer added this to the 3.1 milestone Mar 31, 2021
Daniel-42 pushed a commit to Daniel-42/openhab-addons that referenced this pull request Apr 6, 2021
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>
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
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>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this pull request Jul 13, 2021
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>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
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>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants