- 积分
- 861
- 金钱
- 786
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 861
- 金钱
- 786
- HASS币
- 0
|
发表于 2022-11-11 15:23:45
|
显示全部楼层
楼主提示错误
Logger: homeassistant.components.device_tracker
Source: custom_components/hatuqiangol/device_tracker.py:103
Integration: 设备跟踪器 (documentation, issues)
First occurred: 13:12:36 (2 occurrences)
Last logged: 13:12:36
Error setting up platform legacy hatuqiangol
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 292, in async_setup_legacy
setup = await hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hatuqiangol/device_tracker.py", line 31, in setup_scanner
TuQiangTrackDeviceTracker(hass, config, see)
File "/config/custom_components/hatuqiangol/device_tracker.py", line 49, in __init__
self._update_info()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 192, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/hatuqiangol/device_tracker.py", line 103, in _update_info
battery = float(data['voltage'])
ValueError: could not convert string to float: '' |
|