|
发表于 2020-9-27 17:50:22
|
显示全部楼层
Logger: aiohttp.server
Source: custom_components/ha_cloud_music/source_mpd.py:138
First occurred: 下午5:07:19 (7 occurrences)
Last logged: 下午5:48:54
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 375, in post
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1315, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1350, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 459, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 655, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 490, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 555, in async_media_play
await self.hass.async_add_job(self.media_play)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ha_cloud_music/media_player.py", line 388, in media_play
self._media_player.play()
File "/config/custom_components/ha_cloud_music/source_mpd.py", line 138, in play
self._client.pause(0)
File "/usr/local/lib/python3.8/site-packages/mpd/base.py", line 381, in mpd_command
return wrapper(self, name, args, callback)
File "/usr/local/lib/python3.8/site-packages/mpd/base.py", line 471, in _execute
self._write_command(command, args)
File "/usr/local/lib/python3.8/site-packages/mpd/base.py", line 515, in _write_command
self._write_line(cmd)
File "/usr/local/lib/python3.8/site-packages/mpd/base.py", line 478, in _write_line
self._wfile.write("{}\n".format(line))
File "/usr/local/lib/python3.8/site-packages/mpd/base.py", line 390, in _dummy
raise ConnectionError("Not connected")
mpd.base.ConnectionError: Not connected
是这段吗 |
|