Change pilight systemcode validation to integer (#4286)

* Change pilight systemcode validation to integer

According to the pilight code the systemcode should be an integer and
not a string (it is an int in the pilight code). Passing this as a
string caused errors from pilight:
"ERROR: elro_800_switch: insufficient number of arguments"

This fixes #4282

* Change pilight unit-id to positive integer

According to the pilight code the unit of an entity is also evrywhere
handled as an integer. So converting and passing this as string causes
pilight not to work.

This fixes #4282

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
pull/4341/head
Jan Losinski 2016-11-10 22:14:40 +01:00 committed by Paulus Schoutsen
parent ba2ea35089
commit 7d2ab4fce6
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ DEPENDENCIES = ['pilight']
COMMAND_SCHEMA = pilight.RF_CODE_SCHEMA.extend({
vol.Optional('on'): cv.positive_int,
vol.Optional('off'): cv.positive_int,
vol.Optional(CONF_UNIT): cv.string,
vol.Optional(CONF_UNIT): cv.positive_int,
vol.Optional(CONF_ID): cv.positive_int,
vol.Optional(CONF_STATE): cv.string,
vol.Optional(CONF_SYSTEMCODE): cv.string,
vol.Optional(CONF_SYSTEMCODE): cv.positive_int,
})
SWITCHES_SCHEMA = vol.Schema({