Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state

await self.async_device_update()


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update

await self.async_update()


 "/home/homeassistant/.homeassistant/custom_components/media_player/androidtv.py", line 255, in async_update

await self._androidtv.update()


 "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 361, in update

screen_on = await self._screen_on


 "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 407, in _screen_on

screen_on = await self._dump_has('power', 'Display Power', 'state=ON')


 "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 461, in _dump_has

dump_result = await self._dump(service, grep=grep)


 "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 448, in _dump

result = await self._adb.shell('dumpsys {0} | grep "{1}"'.format(service, grep))


 "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 298, in shell

return await fut


 "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_commands.py", line 383, in Shell

timeout_ms=timeout_ms)


 "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 493, in Command

result = ''.join(cls.StreamingCommand(usb, service, command, timeout_ms))


 "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 529, in StreamingCommand

timeout_ms=timeout_ms)


 "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 440, in Open

timeout_ms=timeout_ms)


 "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 312, in Read

if time.time() - start > total_timeout_ms:
TypeError: '>' not supported between instances of 'float' and 'NoneType'

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
