Clean up mobile app webhooks (#30123)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-12-21 22:45:06 +01:00
1 parent fb3bb8220b
commit 834929a14e
6 files changed
+356 -341

No files matched your search

@@ -20,6 +20,9 @@ class RequestDataValidator:
def __init__(self, schema, allow_empty=False):
"""Initialize the decorator."""
if isinstance(schema, dict):
schema = vol.Schema(schema)
self._schema = schema
self._allow_empty = allow_empty