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

New upstream error while fetching data #74

Closed
pomeloy opened this issue Jun 28, 2023 · 1 comment · Fixed by Ludy87/pyecotrend-ista#49
Closed

New upstream error while fetching data #74

pomeloy opened this issue Jun 28, 2023 · 1 comment · Fixed by Ludy87/pyecotrend-ista#49
Labels
Bug: Confirmed! Something isn't working bug Something isn't working outdated Version 2

Comments

@pomeloy
Copy link

pomeloy commented Jun 28, 2023

ecotrend-ista version: 2.0.4
Home Assistant version: 2023.6.3

Error log:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/ecotrend_ista/coordinator.py", line 82, in _async_update_data
    await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
  File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
    return await func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 500, in consum_raw
    if costsByEnergyType["comparedCost"]["smiley"] in ["MAD", "EQUAL"]:
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

The Ista website currently does not display the heating costs:

Heizung: Aktuell keine Werte vorhanden

@Ludy87 Ludy87 added bug Something isn't working Bug: Confirmed! Something isn't working Version 2 labels Jun 28, 2023
Ludy87 added a commit that referenced this issue Jun 28, 2023
Signed-off-by: Ludy87 <Ludy87@users.noreply.github.com>
Ludy87 added a commit that referenced this issue Jun 28, 2023
Signed-off-by: Ludy87 <Ludy87@users.noreply.github.com>
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Confirmed! Something isn't working bug Something isn't working outdated Version 2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants