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:
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)),
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user