|
发表于 2018-5-11 22:03:27
|
显示全部楼层
本帖最后由 aktifin 于 2018-5-11 22:08 编辑
最新版本,华硕官方固件报错
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 244, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 327, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/util/__init__.py", line 319, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/sensor/asuswrt.py", line 284, in _update
self._state = correct_temperature_unit(self._state, self.tempunit)
AttributeError: 'AsusWrtSensor' object has no attribute 'tempunit'
自己修改代码,解决了self._tempunit
|
|