- 积分
- 971
- 金钱
- 764
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 971
- 金钱
- 764
- HASS币
- 0
|
发表于 2020-2-2 16:48:11
|
显示全部楼层
docker下面安装的homeassistant里安装后报错
报错信息如下:
2020-02-02 16:47:10 ERROR (MainThread) [homeassistant.components.sensor] chineseholiday: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 299, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 461, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/chineseholiday/sensor.py", line 260, in _update
key,days,annis = self.calculate_anniversary()
File "/config/custom_components/chineseholiday/sensor.py", line 146, in calculate_anniversary
month = int(date_str[:2])
ValueError: invalid literal for int() with base 10: '“0' |
|