Skip to content

Commit

Permalink
Update default slot and the lower limit of valid slots
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Dec 1, 2018
1 parent 37168d1 commit 980882b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Capture an infrared command.
| Service data attribute | Optional | Description |
|---------------------------|----------|----------------------------------------------------------------------|
| `entity_id` | yes | Only act on a specific air purifier. Else targets all. |
| `slot` | yes | Storage slot. Defaults to slot ID 1. |
| `slot` | yes | Storage slot. Defaults to slot ID 30. |
| `timeout` | yes | Capturing timeout. Defaults to 10 seconds. |

#### Service `climate.xiaomi_miio_send_command`
Expand Down
2 changes: 1 addition & 1 deletion custom_components/climate/xiaomi_miio.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
vol.Optional(CONF_TIMEOUT, default=DEFAULT_TIMEOUT):
vol.All(int, vol.Range(min=0)),
vol.Optional(CONF_SLOT, default=DEFAULT_SLOT):
vol.All(int, vol.Range(min=1, max=1000000)),
vol.All(int, vol.Range(min=2, max=1000000)),
})

SERVICE_SCHEMA_SEND_COMMAND = SERVICE_SCHEMA.extend({
Expand Down

0 comments on commit 980882b

Please sign in to comment.