- 积分
- 762
- 金钱
- 685
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 762
- 金钱
- 685
- HASS币
- 0
|
发表于 2020-12-9 12:41:15
|
显示全部楼层
本帖最后由 zraxx 于 2020-12-9 13:08 编辑
出现错误(已解决,手机账号写错!):
2020-12-09 12:37:07 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up MiPhone_tracker platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 207, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in _async_add_entity
suggested_object_id or entity.name or DEVICE_DEFAULT_NAME
File "/config/custom_components/MiPhone_tracker/sensor.py", line 92, in name
return "Mi Cloud-" + self.device_name
TypeError: can only concatenate str (not "NoneType") to str |
|