Open EricCorleone opened 2 months ago
目前我只能是给dic = {'date': day, 'usage': float(usage)}
加个try,遇到报错就跳过:
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 数据库: homeassistant.db 连接成功
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 2024-08-28的用电量30KWh已经成功存入数据库
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 2024-08-27的用电量30.02KWh已经成功存入数据库
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 2024-08-26的用电量27.77KWh已经成功存入数据库
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 2024-08-25的用电量33.55KWh已经成功存入数据库
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 2024-08-24的用电量33.65KWh已经成功存入数据库
sgcc_electricity_month_ladder | 2024-08-29 15:15:05 [INFO ] ---- 2024-08-23的用电量24.02KWh已经成功存入数据库
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''
sgcc_electricity_month_ladder | 转浮点数报错:could not convert string to float: ''