JeffLIrion / homeassistant_native_firetv

43 stars 16 forks source link

I have an error after updating #15

Closed josh929800 closed 5 years ago

josh929800 commented 5 years ago

I updated to 725821a (released 12 hours ago). I now get the following error and the player does not load. I was using the Sep 4, 2018 release successfully. Error while setting up platform firetv Traceback (most recent call last): File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 226, in Unpack cls.format, message) struct.error: unpack requires a buffer of 24 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=hass.loop) File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for return fut.result() File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, self.kwargs) File "/config/custom_components/media_player/firetv.py", line 62, in setup_platform device = FireTVDevice(host, name, adbkey, get_source, get_sources) File "/config/custom_components/media_player/firetv.py", line 118, in init self._firetv = FireTV(host, adbkey) File "/config/deps/lib/python3.6/site-packages/firetv/init.py", line 106, in init self.connect() File "/config/deps/lib/python3.6/site-packages/firetv/init.py", line 119, in connect self._adb = adb_commands.AdbCommands().ConnectDevice(serial=self.host, rsa_keys=[signer]) File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 142, in ConnectDevice self._Connect(kwargs) File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 173, in _Connect conn_str = self.protocol_handler.Connect(self._handle, banner=banner, **kwargs) File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 314, in Connect cmd, arg0, arg1, banner = cls.Read(usb, [b'CNXN', b'AUTH']) File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 243, in Read cmd, arg0, arg1, data_length, data_checksum = cls.Unpack(msg) File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 228, in Unpack raise ValueError('Unable to unpack ADB command.', cls.format, message, e) ValueError: ('Unable to unpack ADB command.', b'<6I', b'', error('unpack requires a buffer of 24 bytes',))

josh929800 commented 5 years ago

it started working after a full reboot.