Add google calendar max_results config option (#21874)
* Added max_results config capability to google calendar (people are creating custom components just to override that) * Dummy commit * Dummy commit 2 * Changed to positive_int * Removed double imports
This commit is contained in:
1 parent
01052f516b
commit
e14dbfb006
2 files changed
+9
-3
No files matched your search
@@ -36,6 +36,7 @@ CONF_TRACK = 'track'
|
||||
CONF_SEARCH = 'search'
|
||||
CONF_OFFSET = 'offset'
|
||||
CONF_IGNORE_AVAILABILITY = 'ignore_availability'
|
||||
CONF_MAX_RESULTS = 'max_results'
|
||||
|
||||
DEFAULT_CONF_TRACK_NEW = True
|
||||
DEFAULT_CONF_OFFSET = '!!'
|
||||
@@ -69,6 +70,7 @@ _SINGLE_CALSEARCH_CONFIG = vol.Schema({
|
||||
vol.Optional(CONF_OFFSET): cv.string,
|
||||
vol.Optional(CONF_SEARCH): cv.string,
|
||||
vol.Optional(CONF_TRACK): cv.boolean,
|
||||
vol.Optional(CONF_MAX_RESULTS): cv.positive_int,
|
||||
})
|
||||
|
||||
DEVICE_SCHEMA = vol.Schema({
|
||||
|
||||
Reference in new issue
Block a user