Allow framerates less than 1 (#31108)

pull/31131/head
uvjustin 2020-01-24 02:14:47 +08:00 committed by Paulus Schoutsen
parent 1a1ef7680d
commit 910a0bc870
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
vol.Optional(CONF_PASSWORD): cv.string,
vol.Optional(CONF_USERNAME): cv.string,
vol.Optional(CONF_CONTENT_TYPE, default=DEFAULT_CONTENT_TYPE): cv.string,
vol.Optional(CONF_FRAMERATE, default=2): cv.positive_int,
vol.Optional(CONF_FRAMERATE, default=2): vol.Any(
cv.small_float, cv.positive_int
),
vol.Optional(CONF_VERIFY_SSL, default=True): cv.boolean,
}
)