Commit dd96d59
committed
Fix TypeError in AC power calculation
pv_power is a dict with keys 'pv1', 'pv2', 'pv3', 'total', but was
being added directly to battery_power (float). Changed to use
pv_power['total'] for AC power calculation.
Fixes: TypeError: unsupported operand type(s) for +: 'dict' and 'float'1 parent 51ca51a commit dd96d59
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments