|
发表于 2018-11-18 22:44:04
|
显示全部楼层
2018-11-18 22:28:11 ERROR (MainThread) [custom_components.sensor.aliddns] <urlopen error [Errno 101] Network is unreachable>
2018-11-18 22:28:11 ERROR (MainThread) [homeassistant.components.sensor] aliddns: Error on device update!
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
await self.async_update()
File "/data/data/com.termux/files/usr/lib/python3.7/asyncio/coroutines.py", line 120, in coro
res = func(*args, **kw)
File "/data/data/com.termux/files/home/.homeassistant/custom_components/sensor/aliddns.py", line 252, in async_update
rc_value = self.local_ip(self.Aliyun_API_Type)
File "/data/data/com.termux/files/home/.homeassistant/custom_components/sensor/aliddns.py", line 188, in local_ip
return str(self.public_v6(), encoding = "utf8")
TypeError: decoding to str: need a bytes-like object, NoneType found
楼主 路由器的设置 看不懂啊 |
|