mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Disable identify schema validation for now
This commit is contained in:
parent
0298522fd5
commit
87ef26be22
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user