|
发表于 2019-2-24 23:32:04
|
显示全部楼层
本帖最后由 lyfff 于 2019-4-14 21:12 编辑
moviehd: Error on device update!
Traceback (most recent call last):
File "/home/youdontknowme/.local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File "/home/youdontknowme/.local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 379, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/youdontknowme/.local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 224, in wrapper
result = method(*args, **kwargs)
File "/home/youdontknowme/.homeassistant/custom_components/moviehd/sensor.py", line 210, in _update
movie_score[name] = float(imdb_score)
TypeError: float() argument must be a string or a number, not 'NoneType'
|
|