mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
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
@ -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…
x
Reference in New Issue
Block a user