Traceback (most recent call last):


 "/usr/local/lib/python3.5/asyncio/tasks.py", line 240, in _step

result = coro.send(None)


 "/home/circleci/repo/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity

await entity.async_update_ha_state()


 "/home/circleci/repo/homeassistant/helpers/entity.py", line 225, in async_update_ha_state

self._async_write_ha_state()


 "/home/circleci/repo/homeassistant/helpers/entity.py", line 248, in _async_write_ha_state

state = self.state


 "/home/circleci/repo/homeassistant/components/dyson/sensor.py", line 175, in state

return float("{0:.1f}".format(temperature_kelvin - 273.15))
TypeError: unsupported operand type(s) for -: 'Mock' and 'float'

Traceback (most recent call last):


 "/home/kelsos/.virtualenvs/raiden/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/home/kelsos/.virtualenvs/raiden/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request

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


 "/home/kelsos/.virtualenvs/raiden/lib/python3.6/site-packages/flask_restful/__init__.py", line 480, in wrapper

resp = resource(*args, **kwargs)


 "/home/kelsos/.virtualenvs/raiden/lib/python3.6/site-packages/flask/views.py", line 88, in view

return self.dispatch_request(*args, **kwargs)


 "/home/kelsos/.virtualenvs/raiden/lib/python3.6/site-packages/flask_restful/__init__.py", line 595, in dispatch_request

resp = meth(*args, **kwargs)


 "/home/kelsos/.virtualenvs/raiden/lib/python3.6/site-packages/webargs/core.py", line 441, in wrapper

return func(*args, **kwargs)


 "/home/kelsos/development/github/raiden/raiden/api/v1/resources.py", line 138, in get

to_block=to_block,


 "/home/kelsos/development/github/raiden/raiden/api/rest.py", line 668, in get_channel_events

return api_response(result=normalize_events_list(raiden_service_result))


 "/home/kelsos/development/github/raiden/raiden/api/rest.py", line 136, in api_response

data = json.dumps(result)


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

return _default_encoder.encode(obj)


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

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


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

return _iterencode(o, 0)


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

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