『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: jiluxinqing

[插件集成] 网易云音乐【支持语音播放专辑】【2020-7-14更新】

  [复制链接]

4

主题

341

帖子

3422

积分

论坛元老

Rank: 8Rank: 8

积分
3422
金钱
3081
HASS币
0
发表于 2020-5-7 08:56:47 | 显示全部楼层
109.4版本日志中出现ERR

我hass服务器用的是斐讯N1

2020-05-07 07:38:55 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 288, in async_add_entities
    for entity in new_entities
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 285, in <listcomp>
    self._async_add_entity(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 22, in <genexpr>
    for info_type in SENSORS
  File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 37, in __init__
    self.name = f"{coordinator.data[country].country} Coronavirus {info_type}"
TypeError: 'NoneType' object is not subscriptable
2020-05-07 07:38:57 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for ha_cloud_music doing I/O at custom_components/ha_cloud_music/binary_sensor.py, line 119: res = requests.get('http://www.nongli.cn/rili/api/app/god/'+_a+'.js')
2020-05-07 07:38:57 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for ha_cloud_music doing I/O at custom_components/ha_cloud_music/binary_sensor.py, line 163: + '&co=&resource_id=6018&t=1573873782858&ie=utf8&oe=gbk&cb=op_aladdin_callback&format=json&tn=baidu&cb=&_=1573873715796')
2020-05-07 07:39:08 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.ha_cloud_music 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 472, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/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 347, in update
    self._media_duration = self.media_duration
  File "/config/custom_components/ha_cloud_music/media_player.py", line 522, in media_duration
    if ':' in attr['media_position']:
KeyError: 'media_position'
2020-05-07 07:39:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 53, in async_update_entity
    await entity_obj.async_update_ha_state(True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 323, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/config/custom_components/ha_cloud_music/media_player.py", line 355, in state_attributes
    attr = super().state_attributes
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 804, in state_attributes
    value = getattr(self, attr)
  File "/config/custom_components/ha_cloud_music/media_player.py", line 522, in media_duration
    if ':' in attr['media_position']:
KeyError: 'media_position'
2020-05-07 07:39:10 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/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 265, in interval
    self.api_media.debug('当前时间:%s,当前进度:%s,总进度:%s', self._media_position_updated_at, self._media_position, self.media_duration)
  File "/config/custom_components/ha_cloud_music/media_player.py", line 522, in media_duration
    if ':' in attr['media_position']:
KeyError: 'media_position'


回复

使用道具 举报

38

主题

402

帖子

4330

积分

元老级技术达人

积分
4330
金钱
3863
HASS币
350

教程狂人

 楼主| 发表于 2020-5-7 15:23:07 | 显示全部楼层
georgewu57 发表于 2020-5-7 08:56
109.4版本日志中出现ERR

我hass服务器用的是斐讯N1

你需要升级到2.4.1
http://github.com/shaonianzhentan
回复

使用道具 举报

0

主题

4

帖子

27

积分

新手上路

Rank: 1

积分
27
金钱
23
HASS币
0
发表于 2020-5-9 21:52:26 | 显示全部楼层
看一下如何工作
回复

使用道具 举报

1

主题

181

帖子

568

积分

高级会员

Rank: 4

积分
568
金钱
387
HASS币
0
发表于 2020-5-10 21:57:27 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

1

主题

181

帖子

568

积分

高级会员

Rank: 4

积分
568
金钱
387
HASS币
0
发表于 2020-5-10 21:59:18 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

0

主题

11

帖子

116

积分

注册会员

Rank: 2

积分
116
金钱
105
HASS币
0
发表于 2020-5-10 23:21:45 | 显示全部楼层
看一看怎样
回复

使用道具 举报

0

主题

90

帖子

650

积分

高级会员

Rank: 4

积分
650
金钱
560
HASS币
0
发表于 2020-5-11 01:37:07 | 显示全部楼层
谢谢分享!!!!
回复

使用道具 举报

0

主题

90

帖子

650

积分

高级会员

Rank: 4

积分
650
金钱
560
HASS币
0
发表于 2020-5-11 01:57:16 | 显示全部楼层
看不懂!!!!!!!!!!
回复

使用道具 举报

1

主题

40

帖子

416

积分

中级会员

Rank: 3Rank: 3

积分
416
金钱
376
HASS币
0
发表于 2020-5-11 08:59:20 | 显示全部楼层
一定很nice
回复

使用道具 举报

2

主题

54

帖子

220

积分

中级会员

Rank: 3Rank: 3

积分
220
金钱
166
HASS币
0
发表于 2020-5-11 14:27:29 | 显示全部楼层
感谢大神分享!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 23:38 , Processed in 0.070349 second(s), 37 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表