Fix Synology camera content type (#7010)

This commit is contained in:
Paulus Schoutsen committed 2017-04-11 09:15:30 -07:00
1 parent a60e8b16c0
commit 7a3df037ba
1 file changed
+3 -1
+3 -1
View File
@@ -81,7 +81,9 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
params=query_payload
)
query_resp = yield from query_req.json()
# Skip content type check because Synology doesn't return JSON with
# right content type
query_resp = yield from query_req.json(content_type=None)
auth_path = query_resp['data'][AUTH_API]['path']
camera_api = query_resp['data'][CAMERA_API]['path']
camera_path = query_resp['data'][CAMERA_API]['path']