|
发表于 2019-7-28 16:00:22
|
显示全部楼层
能正常播放到Dlna设备,但是有报错,求解答
2019-07-28 15:20:06 INFO (SyncWorker_15) [custom_components.small_baby.media_player] 源播放器状态 idle,云音乐状态:idle
2019-07-28 15:20:06 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 226, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 762, in state_attributes
in ATTR_TO_PROPERTY if getattr(self, attr) is not None
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 762, in <dictcomp>
in ATTR_TO_PROPERTY if getattr(self, attr) is not None
File "/config/custom_components/small_baby/media_player.py", line 164, in media_position
return self._media.attributes['media_position']
KeyError: 'media_position' |
|