Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

No data for today prices #15

Closed
q84fh opened this issue Dec 20, 2024 · 4 comments
Closed

No data for today prices #15

q84fh opened this issue Dec 20, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@q84fh
Copy link

q84fh commented Dec 20, 2024

Hi, first of all: great work!

I just installed this integration and it fetches prices for tomorrow, but not for today. There is 'unknown' state in TGE Fixing 1 Rate sensor and empty Prices today list in attributes.

obraz

@PiotrMachowski
Copy link
Owner

After 14:00 TGE switches default data source to the next day. I thought this is not possible to go back to previous day, but now I have checked and there is a date selector. It shouldn't be hard to fix 👍

@PiotrMachowski
Copy link
Owner

It should be fixed in v1.1.3

@jonasbkarlsson
Copy link

Line 79 in connector.py is

        data_for_tomorrow = TgeConnector.get_data_for_date(datetime.date.today() - datetime.timedelta(days=1))

Shouldn't the "-" be a "+" in order to get tomorrow's data?

@PiotrMachowski
Copy link
Owner

@jonasbkarlsson 🤦‍♂️ you are correct. I was testing something and forgot to restore it. It is fixed in v1.1.4

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants