Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Getting error #1

Open
HinnerupInfo opened this issue Oct 14, 2022 · 2 comments
Open

Getting error #1

HinnerupInfo opened this issue Oct 14, 2022 · 2 comments

Comments

@HinnerupInfo
Copy link

Exception has occurred: KeyError

'TForbrugsLinje'
File "K:\work\Blackmagic Development\eforsyning-api-main\eforsyning-api-main\eforsyning.py", line 210, in prettyprint_energy_data
for fl in data['ForbrugsLinjer']['TForbrugsLinje']:

File "K:\work\Blackmagic Development\eforsyning-api-main\eforsyning-api-main\eforsyning.py", line 251, in
prettyprint_energy_data(data)

Login success

Year : 2022
Year Start: 01-07-2022
Year End : 30-06-2023

#######################################################

Monthly Data full year

#######################################################
Periode: 01-07-2020 - 30-06-2021

@HinnerupInfo
Copy link
Author

Can it be becourse i dont have any lines ? , new installation

image

@kpoppel
Copy link
Owner

kpoppel commented Oct 15, 2022

It could be because you have a new installation, but if you get data from the web-site then I don't think that is the case.

This code-base is slightly out of date If you look into code here: https://github.com/kpoppel/homeassistant-eforsyning/tree/main/custom_components/eforsyning/pyeforsyning it is the latest available.

If you use this with HomeAssistant it should just work .-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants