Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fixsssator committed Feb 25, 2022
1 parent e5c28dc commit 8bf62ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_miio_health_pot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
})
SERVICE_SCHEMA_SET_WORK = vol.Schema({
vol.Required(ATTR_ENTITY_ID): cv.entity_id,
vol.Required(ATTR_WORK_STATUS): vol.All(vol.Coerce(int), vol.Range(min=1, max=5)),
vol.Required(ATTR_WORK_STATUS): vol.All(vol.Coerce(int), vol.Range(min=0, max=5)),
vol.Required(ATTR_WORK_MODEID): vol.All(vol.Coerce(int), vol.Range(min=1, max=26)),
vol.Optional(ATTR_WORK_KTEMP, default=0): vol.All(vol.Coerce(int), vol.Range(min=0, max=95)),
vol.Optional(ATTR_WORK_KTIME, default=0): vol.All(vol.Coerce(int), vol.Range(min=0, max=12)),
Expand Down Expand Up @@ -318,4 +318,4 @@ def service_handle(service):
hass.services.register(DOMAIN, SERVICE_SET_MODE_SORT, service_handle, schema=SERVICE_SCHEMA_SET_MODE_SORT)
hass.services.register(DOMAIN, SERVICE_SET_MODE, service_handle, schema=SERVICE_SCHEMA_SET_MODE)

return True
return True

1 comment on commit 8bf62ea

@fixsssator
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @fineemb this will fix to use status 0 - to stop cooking.

Please sign in to comment.