Traceback (most recent call last):


 "/www/lemur/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/www/lemur/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/www/lemur/lib/python3.6/site-packages/flask_restful/__init__.py", line 484, in wrapper

return self.make_response(data, code, headers=headers)


 "/www/lemur/lib/python3.6/site-packages/flask_restful/__init__.py", line 513, in make_response

resp = self.representations[mediatype](data, *args, **kwargs)


 "/www/lemur/lib/python3.6/site-packages/flask_restful/representations/json.py", line 21, in output_json

dumped = dumps(data, **settings) + "\n"


 "/usr/lib/python3.6/json/__init__.py", line 231, in dumps

return _default_encoder.encode(obj)


 "/usr/lib/python3.6/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/lib/python3.6/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/usr/lib/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start

resp = await self._request_handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_app.py", line 310, in _handle

resp = await handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl

return await handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 52, in auth_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 100, in handle

result = await result


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/websocket_api.py", line 210, in get

return await ActiveConnection(request.app['hass'], request).handle()


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/websocket_api.py", line 393, in handle

await self._writer_task


 "/usr/local/lib/python3.6/asyncio/futures.py", line 329, in __iter__

return self.result()
# May raise too.


 "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result

raise self._exception


 "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step

result = coro.send(None)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/websocket_api.py", line 243, in _writer

await self.wsock.send_json(message, dumps=JSON_DUMP)


 "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_ws.py", line 263, in send_json

await self.send_str(dumps(data), compress=compress)


 "/usr/local/lib/python3.6/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "/usr/local/lib/python3.6/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/local/lib/python3.6/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/remote.py", line 136, in default

return json.JSONEncoder.default(self, o)


 "/usr/local/lib/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'Decimal' is not JSON serializable
