Use slug in ping device tracker config validation (#31329)

* Use slug instead of string for config validation
This commit is contained in:
springstan
2020-02-08 15:19:46 +01:00
committed by GitHub
parent ed3e16123e
commit 83a79a434c

View File

@@ -21,7 +21,7 @@ CONF_PING_COUNT = "count"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(const.CONF_HOSTS): {cv.string: cv.string},
vol.Required(const.CONF_HOSTS): {cv.slug: cv.string},
vol.Optional(CONF_PING_COUNT, default=1): cv.positive_int,
}
)