- 积分
- 260
- 金钱
- 213
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 260
- 金钱
- 213
- HASS币
- 0
|
发表于 2021-3-19 10:04:50
|
显示全部楼层
大神好,定位貌似很难刷新,看了一下日志,有报错,请问是什么情况?
Logger: homeassistant
Source: custom_components/xiaomi_cloud/device_tracker.py:90
First occurred: 2021年3月18日下午10:48:42 (7 occurrences)
Last logged: 上午9:50:18
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 124, in _handle_refresh_interval
await self.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 198, in async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 103, in state
if self.latitude is not None:
File "/config/custom_components/xiaomi_cloud/device_tracker.py", line 90, in latitude
return self.coordinator.data[self._vin]["device_lat"]
TypeError: 'bool' object is not subscriptable
|
|