|
发表于 2023-9-14 11:53:42
|
显示全部楼层
此错误来自自定义集成。
Logger: custom_components.bj_water
Source: custom_components/bj_water/bj_water.py:173
Integration: 北京水费信息 (documentation)
First occurred: 2023年9月4日 15:02:06 (3 occurrences)
Last logged: 11:50:42
Unexpected error fetching bj_water data: invalid literal for int() with base 10: '30/178'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 242, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bj_water/bj_water.py", line 215, in fetch_data
await self.get_monthly_bill(bill_date)
File "/config/custom_components/bj_water/bj_water.py", line 173, in get_monthly_bill
{"meter_value": int(detail_data["endValue"])}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '30/178'
|
|