- 积分
- 707
- 金钱
- 655
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 707
- 金钱
- 655
- HASS币
- 0
|
发表于 2020-12-8 12:15:37
|
显示全部楼层
每次大概重启几分钟后就会断连,是我姿势不对吗
Logger: homeassistant
Source: custom_components/mitemp_bt2/sensor.py:163
First occurred: 下午12:11:10 (1 occurrences)
Last logged: 下午12:11:10
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mitemp_bt2/sensor.py", line 267, in update_ble
discover_ble_device(config)
File "/config/custom_components/mitemp_bt2/sensor.py", line 246, in discover_ble_device
data = instance.get_info(config[CONF_MAC], mode=config[CONF_MODE])
File "/config/custom_components/mitemp_bt2/sensor.py", line 163, in get_info
p.writeCharacteristic(0x0046,b'\xf4\x01\x00',True)
File "/usr/local/lib/python3.8/site-packages/bluepy/btle.py", line 543, in writeCharacteristic
return self._getResp('wr')
File "/usr/local/lib/python3.8/site-packages/bluepy/btle.py", line 407, in _getResp
resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
File "/usr/local/lib/python3.8/site-packages/bluepy/btle.py", line 362, in _waitResp
raise BTLEDisconnectError("Device disconnected", resp)
bluepy.btle.BTLEDisconnectError: Device disconnected |
|