Fix allow extra in locative webhook schema validation (#20657)
* Allow extra in locative webhook schema validation (fixes #20566) * Remove extra attribute
This commit is contained in:
parent
9e7d7354ed
commit
3e2dae62c0
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ WEBHOOK_SCHEMA = vol.All(
|
||||||
vol.Required(ATTR_LONGITUDE): cv.longitude,
|
vol.Required(ATTR_LONGITUDE): cv.longitude,
|
||||||
vol.Required(ATTR_DEVICE_ID): cv.string,
|
vol.Required(ATTR_DEVICE_ID): cv.string,
|
||||||
vol.Required(ATTR_TRIGGER): cv.string,
|
vol.Required(ATTR_TRIGGER): cv.string,
|
||||||
vol.Optional(ATTR_ID): vol.All(cv.string, _id)
|
vol.Optional(ATTR_ID): vol.All(cv.string, _id),
|
||||||
}),
|
}, extra=vol.ALLOW_EXTRA),
|
||||||
_validate_test_mode
|
_validate_test_mode
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue