Commit d17093f2 authored by Federico Sismondi's avatar Federico Sismondi
Browse files

Better use API methods for rewriting attrs

parent 5b0b5a83
......@@ -587,8 +587,8 @@ def _rewrite_device_attributes(deveui,
body.pop('type') # we don't need this for a PATCH
app.logger.debug('PATCHING data in CTX broker: {}'.format(body))
url = "{}/v2/entities/{}".format(URL_BASE, entity_id)
r = client_request.put(
url = "{}/v2/entities/{}/attrs".format(URL_BASE, entity_id)
r =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment