-
-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Update service domains for xiaomi_miio from base domains to xiaomi_miio domain #29134
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
Merged
balloob
merged 11 commits into
home-assistant:dev
from
raman325:xiaomi_miio_service_update
Dec 2, 2019
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2eda053
move service constants to const.py, move all custom xiaomi_miio servi…
raman325 90d8129
update service names
raman325 baadbd3
try to fix black error
raman325 1f5f4b2
try black formatting again
raman325 d0e9fad
final black formatting attempt
raman325 8aae4ef
Merge branch 'dev' into xiaomi_miio_service_update
raman325 1980db9
Merge branch 'dev' into xiaomi_miio_service_update
raman325 d1d3be5
update service names to reflect platform
raman325 74ca017
Merge branch 'dev' into xiaomi_miio_service_update
raman325 b81f6eb
Merge branch 'xiaomi_miio_service_update' of https://github.com/raman…
raman325 7fe0793
fix typo
raman325 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| """Constants for the Xiaomi Miio component.""" | ||
| DOMAIN = "xiaomi_miio" | ||
|
|
||
| # Fan Services | ||
| SERVICE_SET_BUZZER_ON = "set_buzzer_on" | ||
| SERVICE_SET_BUZZER_OFF = "set_buzzer_off" | ||
| SERVICE_SET_LED_ON = "set_led_on" | ||
| SERVICE_SET_LED_OFF = "set_led_off" | ||
| SERVICE_SET_CHILD_LOCK_ON = "set_child_lock_on" | ||
| SERVICE_SET_CHILD_LOCK_OFF = "set_child_lock_off" | ||
| SERVICE_SET_LED_BRIGHTNESS = "set_led_brightness" | ||
| SERVICE_SET_FAVORITE_LEVEL = "set_favorite_level" | ||
| SERVICE_SET_AUTO_DETECT_ON = "set_auto_detect_on" | ||
| SERVICE_SET_AUTO_DETECT_OFF = "set_auto_detect_off" | ||
| SERVICE_SET_LEARN_MODE_ON = "set_learn_mode_on" | ||
| SERVICE_SET_LEARN_MODE_OFF = "set_learn_mode_off" | ||
| SERVICE_SET_VOLUME = "set_volume" | ||
| SERVICE_RESET_FILTER = "reset_filter" | ||
| SERVICE_SET_EXTRA_FEATURES = "set_extra_features" | ||
| SERVICE_SET_TARGET_HUMIDITY = "set_target_humidity" | ||
| SERVICE_SET_DRY_ON = "set_dry_on" | ||
| SERVICE_SET_DRY_OFF = "set_dry_off" | ||
|
|
||
| # Light Services | ||
| SERVICE_SET_SCENE = "set_scene" | ||
| SERVICE_SET_DELAYED_TURN_OFF = "set_delayed_turn_off" | ||
| SERVICE_REMINDER_ON = "reminder_on" | ||
| SERVICE_REMINDER_OFF = "reminder_off" | ||
| SERVICE_NIGHT_LIGHT_MODE_ON = "night_light_mode_on" | ||
| SERVICE_NIGHT_LIGHT_MODE_OFF = "night_light_mode_off" | ||
| SERVICE_EYECARE_MODE_ON = "eyecare_mode_on" | ||
| SERVICE_EYECARE_MODE_OFF = "eyecare_mode_off" | ||
|
|
||
| # Remote Services | ||
| SERVICE_LEARN = "learn_command" | ||
|
|
||
| # Switch Services | ||
| SERVICE_SET_WIFI_LED_ON = "set_wifi_led_on" | ||
| SERVICE_SET_WIFI_LED_OFF = "set_wifi_led_off" | ||
| SERVICE_SET_POWER_MODE = "set_power_mode" | ||
| SERVICE_SET_POWER_PRICE = "set_power_price" | ||
|
|
||
| # Vacuum Services | ||
| SERVICE_MOVE_REMOTE_CONTROL = "remote_control_move" | ||
| SERVICE_MOVE_REMOTE_CONTROL_STEP = "remote_control_move_step" | ||
| SERVICE_START_REMOTE_CONTROL = "remote_control_start" | ||
| SERVICE_STOP_REMOTE_CONTROL = "remote_control_stop" | ||
| SERVICE_CLEAN_ZONE = "clean_zone" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.