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

 找回密码
 立即注册
12
返回列表 发新帖
楼主: Genkin

[技术探讨] 巴法云好久都不能用了,有没有大佬修一修?

[复制链接]

3

主题

15

帖子

92

积分

注册会员

Rank: 2

积分
92
金钱
77
HASS币
0
 楼主| 发表于 2024-9-27 12:18:27 | 显示全部楼层
重新安装了,还是不行呃,有没有大佬帮忙看看啥问题?
相关的日志:
1:
2024-09-27 12:04:18.449 WARNING (ImportExecutor_0) [homeassistant.backports.enum] StrEnum was used from bemfa, this is a deprecated alias which will be removed in HA Core 2025.5. Use enum.StrEnum instead, please report it to the author of the 'bemfa' custom integration

2:
2024-09-27 12:05:14.667 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for bemfa
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bemfa/__init__.py", line 31, in async_setup_entry
    await service.async_start(
  File "/config/custom_components/bemfa/service.py", line 37, in async_start
    self._bemfa_mqtt.connect()
  File "/config/custom_components/bemfa/mqtt.py", line 79, in connect
    self._mqttc.connect(MQTT_HOST, MQTT_PORT, MQTT_KEEPALIVE)
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 914, in connect
    return self.reconnect()
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 829, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 964, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Try again

3:
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 516, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bemfa/config_flow.py", line 125, in async_step_create_sync
    service = self._get_service()
              ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bemfa/config_flow.py", line 326, in _get_service
    return self.hass.data[DOMAIN].get(self._entry_id)["service"]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

4:
2024-09-27 12:07:44.710 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/config/custom_components/bemfa/mqtt.py", line 98, in _receive_job
    self._reconnect()
  File "/config/custom_components/bemfa/mqtt.py", line 110, in _reconnect
    self.connect()
  File "/config/custom_components/bemfa/mqtt.py", line 79, in connect
    self._mqttc.connect(MQTT_HOST, MQTT_PORT, MQTT_KEEPALIVE)
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 914, in connect
    return self.reconnect()
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 829, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 964, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Try again

回复

使用道具 举报

3

主题

15

帖子

92

积分

注册会员

Rank: 2

积分
92
金钱
77
HASS币
0
 楼主| 发表于 2024-10-7 17:45:30 | 显示全部楼层
昨晚更新了 10.1 版本的 core,重启之后突然就可以用了。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-21 19:36 , Processed in 0.996058 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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