|
发表于 2023-10-26 18:17:32
|
显示全部楼层
2023-10-26 18:09:12.230 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy hatuqiangol
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 303, in async_setup_legacy
setup = await 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/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 190, in wrapper
result = method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hatuqiangol/device_tracker.py", line 118, in _update_info
lat = float(data['lat'])
^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: ''
这个是什么问题呀 |
|