|
发表于 2022-1-27 23:37:04
来自手机
|
显示全部楼层
还有谁在用这个插件吗?前几天突然就不行了,报错生成不了实体
Logger: homeassistant.components.sensor
Source: custom_components/stock_prices/sensor.py:80
Integration: 传感器 (documentation, issues)
First occurred: 23:36:02 (3 occurrences)
Last logged: 23:36:05
stock_prices: Error on device update!
Traceback (most recent call last):
File "/volume1/@appstore/homeassistant/env/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/volume1/@appstore/homeassistant/env/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 633, in async_device_update
await task
File "/var/packages/python38/target/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/volume1/@appstore/homeassistant/var/config/custom_components/stock_prices/sensor.py", line 126, in update
self._state = self.get_price()
File "/volume1/@appstore/homeassistant/var/config/custom_components/stock_prices/sensor.py", line 80, in get_price
_Log.info("Match %s", str(self.tracking_number+", found: "+matchObj.group(1)))
AttributeError: 'NoneType' object has no attribute 'group'
|
|