Use slug in ping device tracker config validation (#31329)
* Use slug instead of string for config validation
This commit is contained in:
parent
ed3e16123e
commit
83a79a434c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue