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

Unhandled peaqerror when bad spotprice-update #356

Open
elden1337 opened this issue Jul 25, 2024 · 1 comment
Open

Unhandled peaqerror when bad spotprice-update #356

elden1337 opened this issue Jul 25, 2024 · 1 comment
Labels
area:prices bug Something isn't working

Comments

@elden1337
Copy link
Owner

2024-07-24 20:35:59.919 ERROR (MainThread) [peaqevcore.common.spotprice.models.spotprice_dto] Could not parse today's prices. Unsolveable error. 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/peaqevcore/common/spotprice/models/spotprice_dto.py", line 25, in set_model
    self.today = list(ret.attributes.get("today"))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-07-24 20:35:59.921 WARNING (MainThread) [peaqevcore.common.spotprice.spotpricebase] Possible issue detected with None in nordpool dates.
2024-07-24 20:35:59.922 ERROR (MainThread) [custom_components.peaqnext.service.spotprice.spotprice_dto] Could not parse today's prices from Nordpool. Unsolveable error. 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/config/custom_components/peaqnext/service/spotprice/spotprice_dto.py", line 21, in set_model
    self.today = list(ret.attributes.get("today"))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-07-24 20:36:01.353 WARNING (MainThread) [custom_components.peaqhvac.service.hub.hub] Unable to get price for hour 2024-07-24 20:00:00. min_price: 0.1, num_prices_today: 0
2024-07-24 20:36:01.370 ERROR (MainThread) [peaqevcore.services.hoursselection_service_new.hourselection_service] Exception in adding prices today! list index out of range
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/peaqevcore/services/hoursselection_service_new/hourselection_service.py", line 73, in clean_prices
    price_dict[h] = prices[idx]
                    ~~~~~~^^^^^
IndexError: list index out of range
2024-07-24 20:36:01.372 ERROR (MainThread) [peaqevcore.services.hoursselection_service_new.hourselection_service] Exception in updating prices! Please report a bug and include the following: list index out of range
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/peaqevcore/services/hoursselection_service_new/hourselection_service.py", line 90, in async_update_prices
    price_dict = self.clean_prices(prices, prices_tomorrow)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/peaqevcore/services/hoursselection_service_new/hourselection_service.py", line 73, in clean_prices
    price_dict[h] = prices[idx]
                    ~~~~~~^^^^^
IndexError: list index out of range
2024-07-24 20:36:04.265 ERROR (MainThread) [custom_components.peaqev.peaqservice.hub.state_changes.state_changes] async_update_sensor_internal for sensor.nordpool_kwh_se3_sek_3_10_025: strptime() argument 1 must be str, not datetime.date
@elden1337 elden1337 added bug Something isn't working next Version tag area:prices labels Jul 25, 2024
@elden1337
Copy link
Owner Author

To repro this, reload nordpool integration only.

@elden1337 elden1337 removed the next Version tag label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:prices bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant