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

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

[插件集成] 钉钉群机器人和企业微信群机器人+企业微信论坛修改加强版

  [复制链接]

0

主题

24

帖子

147

积分

注册会员

Rank: 2

积分
147
金钱
123
HASS币
0
发表于 2023-12-3 20:50:27 | 显示全部楼层
看看
顶顶顶顶顶顶顶
回复

使用道具 举报

2

主题

104

帖子

1364

积分

金牌会员

Rank: 6Rank: 6

积分
1364
金钱
1260
HASS币
0
发表于 2023-12-29 16:40:43 | 显示全部楼层
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:226
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 下午4:39:22 (1 occurrences)
Last logged: 下午4:39:22

[139712751933248] Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 2012, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2049, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 264, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 240, in async_send_message
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/wework_notify/notify.py", line 97, in send_message
    + self.get_access_token()
      ^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/wework_notify/notify.py", line 91, in get_access_token
    self._token = self._get_access_token()
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/wework_notify/notify.py", line 80, in _get_access_token
    data = json.loads(req.text)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

大佬,这是哪里报错了??
回复

使用道具 举报

1

主题

12

帖子

54

积分

注册会员

Rank: 2

积分
54
金钱
42
HASS币
0
发表于 2024-1-11 11:11:09 | 显示全部楼层
下载不了
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-29 07:33 , Processed in 0.353152 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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