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

Missing projectedKWH key #28

Open
dannytrigo opened this issue Apr 29, 2022 · 1 comment
Open

Missing projectedKWH key #28

dannytrigo opened this issue Apr 29, 2022 · 1 comment

Comments

@dannytrigo
Copy link

When trying to add the integration I get the following error:

  File "/config/custom_components/fpl/fplapi.py", line 313, in __getDataFromEnergyService
    data["projectedKWH"] = r["CurrentUsage"]["projectedKWH"]
KeyError: 'projectedKWH'
@dannytrigo
Copy link
Author

dannytrigo commented Apr 29, 2022

It seems this may be related to an error on my account maybe? But might require better error handling:
This is the content of r["CurrentUsage"]:

{'accountNumber': '...', 'premiseNumber': '...', 'exceptionDetails': {'requestStatus': 'Failed', 'resultCode': 'ex022', 'resultInfo': 'Processing Error'}, 'billDiff': '', 'previousBillRead': '', 'currentBillRead': '', 'todayMeterRead': '', 'previousBillAmount': '16.96', 'delMtrReading': '43026', 'recMtrReading': '', 'nextBillDate': 'May 04, 2022'}

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

1 participant