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:
parent
4cecc626f4
commit
88bb136813
1 changed files with 2 additions and 1 deletions
|
@ -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)),
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue