lg_netcast: fix exception on missing access_token (#2150)

* specified default value for acccess_token to prevent exception on init
This commit is contained in:
wokar authored and Paulus Schoutsen committed 2016-05-24 08:36:40 -07:00
1 parent 4cecc626f4
commit 88bb136813
1 file changed
+2 -1
@@ -37,7 +37,8 @@ PLATFORM_SCHEMA = vol.Schema({
vol.Required(CONF_PLATFORM): "lg_netcast",
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Required(CONF_HOST): cv.string,
vol.Optional(CONF_ACCESS_TOKEN): vol.All(cv.string, vol.Length(max=6)),
vol.Optional(CONF_ACCESS_TOKEN, default=None):
vol.All(cv.string, vol.Length(max=6)),
})