Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed having wrong zaehlpunkt with multi contracts
When adding or updating a sensor, the zaehlpunkt is checked with the get_zaehlpunkt function. The problem was that the variable for the array, which has the zaehlpunkt details in them, had the same name as the zaehlpunkt itself. So when having multiple contracts/customerIds, the correct zaehlpunkt was overwritten by the zaehlpunkt details, which is now an empty array. All API requests were then done with an empty array and threw errors all around.
- Loading branch information