Closed freaksdotcom closed 1 year ago
do you still have this error ? i selves seen some wierd errors in the nite time, but works fine in the day again
It works when the panels are active, but I also suspect that the problem will come up again if HA restarts after sunset.
The bug was introduced in https://github.com/skelgaard/homeassistant-apsystems/commit/e7cfdba2bb053ddb4e002b50a0ba050743fb1ceb on line 255-256. If the panels are not producing power, self.cache
will never be populated. Line 260 tries to subscript it, causing the TypeError
well thats around the same i came to when trying to find the bug... it also has something todo with that offset in there, just haven't had the time to figure out how to fix it and as it works when there is solar produced, i have not looked much more into it
so the solution is to restart ha during the day?
that works for me :) so do tell if it doesn't for you
The integration is failing with a TypeError: