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

Change nomenclature for Roborock fan speeds #30614

Merged
merged 3 commits into from
Jan 9, 2020
Merged

Change nomenclature for Roborock fan speeds #30614

merged 3 commits into from
Jan 9, 2020

Conversation

tiagofreire-pt
Copy link
Contributor

@tiagofreire-pt tiagofreire-pt commented Jan 9, 2020

Replacing the previous PR #30164, because some weird errors rebasing my repo.

Breaking Change:

This change adjusts some fan speed values according to the Xiaomi app version 5.6.34. and therefore users will need to update anything that utilizes the following fan speed values:

  • Quiet -> Silent
  • Balanced -> Standard
  • Turbo -> Medium
  • Max -> Turbo

Description:

Those are the new fan speed nomenclatures on the Xiaomi app vs 5.6.34.

Pull request with documentation for home-assistant.io (if applicable):
home-assistant/home-assistant.io#11523

Example entry for configuration.yaml (if applicable):

Not applicable.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

## Breaking Change:

May break some automations using the string/names from the current implementation.

> Users will need to update any automations that utilize fan speed values – specifically:
> 
>     * `Quiet -> Silent`
> 
>     * `Balanced -> Standard`
> 
>     * `Turbo -> Medium`
> 
>     * `Max -> Turbo`

## Description:
Those are the new fan speed nomenclatures on the Xiaomi app vs 5.6.34.

**Pull request with documentation for [home-assistant.io](https://github.com/home-assistant/home-assistant.io) (if applicable):**
home-assistant/home-assistant.io#11523

## Example entry for `configuration.yaml` (if applicable):
Not applicable.

## Checklist:
  - [X] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [X] There is no commented out code in this PR.
  - [X] I have followed the [development checklist][dev-checklist]

If user exposed functionality or configuration variables are added/changed:
  - [X] Documentation added/updated in [home-assistant.io](https://github.com/home-assistant/home-assistant.io)

If the code communicates with devices, web services, or third-party tools:
  - [x] [_The manifest file_][manifest-docs] has all fields filled out correctly. Update and include derived files by running `python3 -m script.hassfest`.
  - [x] New or updated dependencies have been added to `requirements_all.txt` by running `python3 -m script.gen_requirements_all`.
  - [x] Untested files have been added to `.coveragerc`.

If the code does not interact with devices:
  - [x] Tests have been added to verify that the new code works.

[dev-checklist]: https://developers.home-assistant.io/docs/en/development_checklist.html
[manifest-docs]: https://developers.home-assistant.io/docs/en/creating_integration_manifest.html
@probot-home-assistant
Copy link

Hey there @rytilahti, @syssi, mind taking a look at this pull request as its been labeled with a integration (xiaomi_miio) you are listed as a codeowner for? Thanks!

@springstan
Copy link
Member

@tiagofreire-pt please adjust the tests accordingly to this change :)

@springstan springstan merged commit 7052cdd into home-assistant:dev Jan 9, 2020
@tiagofreire-pt tiagofreire-pt deleted the patch-2 branch January 10, 2020 10:39
@lock lock bot locked and limited conversation to collaborators Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants