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:
Rohan Kapoor 2019-02-01 00:40:27 -08:00 committed by GitHub
parent 9e7d7354ed
commit 3e2dae62c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,8 +48,8 @@ WEBHOOK_SCHEMA = vol.All(
vol.Required(ATTR_LONGITUDE): cv.longitude,
vol.Required(ATTR_DEVICE_ID): 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
)