Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 232, in async_update_ha_state
state = self.state
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 143, in state
if self._status['state'] == 'play':
KeyError: 'state'
第二条
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 279, in _handle_service_platform_call
await func(entity, data)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 315, in play_media
self._client.clear()
File "/usr/local/lib/python3.6/site-packages/mpd/base.py", line 381, in mpd_command
return wrapper(self, name, args, callback)
File "/usr/local/lib/python3.6/site-packages/mpd/base.py", line 473, in _execute
return retval()
File "/usr/local/lib/python3.6/site-packages/mpd/base.py", line 368, in command_callback
res = function(self, self._read_lines())
File "/usr/local/lib/python3.6/site-packages/mpd/base.py", line 313, in _parse_nothing
"Got unexpected return value: '{}'".format(', '.join(lines)))
mpd.base.ProtocolError: Got unexpected return value: 'repeat: 0, random: 0, single: 0, consume: 0, playlist: 9, playlistlength: 1, xfade: 0, state: stop, nextsong: 0, nextsongid: 4'