xiaomigateway icon indicating copy to clipboard operation
xiaomigateway copied to clipboard

Update of media_player.xiaomi_fm_radio is taking over 10 seconds

Open webhostsg opened this issue 5 years ago • 0 comments

Logs filled with:

Source: __main__.py:347
First occurred: 8:14:17 PM (45 occurrences)
Last logged: 9:05:16 PM

Update of media_player.xiaomi_fm_radio is taking over 10 seconds
2020-05-07 21:16:03 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.xiaomi_fm_radio fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
    await self.async_update()
  File "/config/custom_components/xiaomigateway/media_player.py", line 297, in async_update
    self._device.send, 'get_prop_fm', '')
  File "/config/custom_components/xiaomigateway/media_player.py", line 83, in _try_command
    partial(func, *args, **kwargs))
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/miio/device.py", line 147, in send
    command, parameters, retry_count, extra_parameters=extra_parameters
  File "/config/miio/miioprotocol.py", line 149, in send
    self.send_handshake()
  File "/config/miio/miioprotocol.py", line 62, in send_handshake
    header = m.header.value
AttributeError: 'NoneType' object has no attribute 'header'

webhostsg avatar May 07 '20 13:05 webhostsg