mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
vol.IsFile() needs to be called
vol.IsFile results in an instance of the IsFile method being returned by the schema validation process. It needs to be called in order to do the right thing.
This commit is contained in:
@@ -88,7 +88,7 @@ CONFIG_SCHEMA = vol.Schema({
|
||||
vol.All(vol.Coerce(int), vol.Range(min=1, max=65535)),
|
||||
vol.Optional(CONF_USERNAME): cv.string,
|
||||
vol.Optional(CONF_PASSWORD): cv.string,
|
||||
vol.Optional(CONF_CERTIFICATE): vol.IsFile,
|
||||
vol.Optional(CONF_CERTIFICATE): vol.IsFile(),
|
||||
vol.Optional(CONF_PROTOCOL, default=DEFAULT_PROTOCOL):
|
||||
[PROTOCOL_31, PROTOCOL_311],
|
||||
vol.Optional(CONF_EMBEDDED): _HBMQTT_CONFIG_SCHEMA,
|
||||
|
Reference in New Issue
Block a user