From 87ef26be229147701abe0749852838fdb314d2fd Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Sun, 30 Apr 2017 15:23:49 -0700 Subject: [PATCH] Disable identify schema validation for now --- homeassistant/components/ios.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/ios.py b/homeassistant/components/ios.py index bac5bb59d96..3607fda9a79 100644 --- a/homeassistant/components/ios.py +++ b/homeassistant/components/ios.py @@ -288,15 +288,16 @@ class iOSIdentifyDeviceView(HomeAssistantView): def post(self, request): """Handle the POST request for device identification.""" try: - req_data = yield from request.json() + data = yield from request.json() except ValueError: return self.json_message("Invalid JSON", HTTP_BAD_REQUEST) - try: - data = IDENTIFY_SCHEMA(req_data) - except vol.Invalid as ex: - return self.json_message(humanize_error(request.json, ex), - HTTP_BAD_REQUEST) + # Commented for now while iOS app is getting frequent updates + # try: + # data = IDENTIFY_SCHEMA(req_data) + # except vol.Invalid as ex: + # return self.json_message(humanize_error(request.json, ex), + # HTTP_BAD_REQUEST) data[ATTR_LAST_SEEN_AT] = datetime.datetime.now()