mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
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
@ -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…
x
Reference in New Issue
Block a user