/prices_short ignores region= and returns German prices (only country= works)
Hi,
First of all thank you for creating this project! Its very nice. Last week I was seeing different prices for my HA instance and EVCC. The only difference is that they use /prices_short and /prices.
I found a bug in the prices_short endpoint, it still contains "alias=country" in the region argument. Because of the alias, ?region=NL is ignored and the default region (DE) is used, so the two endpoints return different prices.
https://github.com/b3nn0/EpexPredictor/blob/adeb70b3fcbad7ef611799aea1b5f40b2df0d0b8/predictor/api/priceapi.py#L503
This is different from /prices
https://github.com/b3nn0/EpexPredictor/blob/adeb70b3fcbad7ef611799aea1b5f40b2df0d0b8/predictor/api/priceapi.py#L474
I removed it from my own epexpredictor version and it resolved the inconsistencies I was seeing between /prices_short and /prices
Good find, looks like that accidentally happened when I tried to rename country to region in a backwards compatible way, and then I forgot to remove that. Thanks