Giter Site home page Giter Site logo

安装报错 about cloud_music HOT 3 CLOSED

Tao173 avatar Tao173 commented on September 16, 2024
安装报错

from cloud_music.

Comments (3)

shaonianzhentan avatar shaonianzhentan commented on September 16, 2024 1

在设置切换卡里可以选择播放器

from cloud_music.

Tao173 avatar Tao173 commented on September 16, 2024

在设置切换卡里可以选择播放器

感谢回复

已设置好网页播放器,但是没有声音,查看HA日志有错,Home Assistant 0.116.4

Logger: aiohttp.server
Source: custom_components/ha_cloud_music/api_music.py:159
First occurred: 上午1:06:06 (1 occurrences)
Last logged: 上午1:06:06

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 "/config/custom_components/ha_cloud_music/api_view.py", line 31, in post
_result = await mp.api_music.search_playlist(_name)
File "/config/custom_components/ha_cloud_music/api_music.py", line 159, in search_playlist
if obj['code'] == 200:
TypeError: 'NoneType' object is not subscriptable

望回复。 @shaonianzhentan

from cloud_music.

shaonianzhentan avatar shaonianzhentan commented on September 16, 2024

在设置切换卡里可以选择播放器

感谢回复

已设置好网页播放器,但是没有声音,查看HA日志有错,Home Assistant 0.116.4

Logger: aiohttp.server
Source: custom_components/ha_cloud_music/api_music.py:159
First occurred: 上午1:06:06 (1 occurrences)
Last logged: 上午1:06:06

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 "/config/custom_components/ha_cloud_music/api_view.py", line 31, in post
_result = await mp.api_music.search_playlist(_name)
File "/config/custom_components/ha_cloud_music/api_music.py", line 159, in search_playlist
if obj['code'] == 200:
TypeError: 'NoneType' object is not subscriptable

望回复。 @shaonianzhentan

从错误日志看来,是音乐接口不通,没有返回数据导致异常,请仔细检查一下音乐接口是否在HA中调不通的情况

from cloud_music.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.