此错误来自自定义集成。
Logger: homeassistant
Source: custom_components/xiaomi_cloud/device_tracker.py:98
Integration: Xiaomi Cloud (documentation, issues)
First occurred: 14:46:40 (2 occurrences)
Last logged: 15:18:55
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 247, in state
if self.latitude is not None and self.longitude is not None:
File "/config/custom_components/xiaomi_cloud/device_tracker.py", line 98, in latitude
return self.coordinator.data[self._vin]["device_lat"]
TypeError: 'bool' object is not subscriptable