Fixed voluptuous to accept string instead positive_int for CODE on Simplisafe (#3310)

pull/3314/head
Marcelo Moreira de Mello 2016-09-11 03:07:13 -04:00 committed by Fabian Affolter
parent 4748e7f7e9
commit 9bbe7be684
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ DEFAULT_NAME = 'SimpliSafe'
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_PASSWORD): cv.string,
vol.Required(CONF_USERNAME): cv.string,
vol.Optional(CONF_CODE): cv.positive_int,
vol.Optional(CONF_CODE): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
})