|
发表于 2020-3-20 20:08:26
|
显示全部楼层
大神更新下版本把 现在不能用了
Error while setting up platform weibo
Traceback (most recent call last):
File "/config/custom_components/weibo/sensor.py", line 132, in _update
for tab in rep.json()['tabsInfo']['tabs']:
KeyError: 'tabsInfo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
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/weibo/sensor.py", line 58, in setup_platform
weibo_data.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/weibo/sensor.py", line 136, in _update
_LOGGER.error('Failed to get containerid', ex)
File "/usr/local/lib/python3.7/logging/__init__.py", line 1407, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/local/lib/python3.7/logging/__init__.py", line 1514, in _log
self.handle(record)
File "/usr/local/lib/python3.7/logging/__init__.py", line 1524, in handle
self.callHandlers(record)
File "/usr/local/lib/python3.7/logging/__init__.py", line 1586, in callHandlers
hdlr.handle(record)
File "/usr/local/lib/python3.7/logging/__init__.py", line 894, in handle
self.emit(record)
File "/usr/src/homeassistant/homeassistant/components/system_log/__init__.py", line 176, in emit
record, stack, _figure_out_source(record, stack, self.hass)
File "/usr/src/homeassistant/homeassistant/components/system_log/__init__.py", line 102, in __init__
self.message = record.getMessage()
File "/usr/local/lib/python3.7/logging/__init__.py", line 369, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
连接中断。正在重新连接...
|
|