You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error adding entities for domain sensor with platform nordpool
Error while setting up nordpool platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/nordpool/sensor.py", line 518, in async_added_to_hass
await self.handle_new_hr()
File "/config/custom_components/nordpool/sensor.py", line 480, in handle_new_hr
today = await self._api.today(self._area, self._currency)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/init.py", line 113, in today
return await self._someday(area, currency, "today")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/init.py", line 99, in _someday
await self.update_today()
File "/config/custom_components/nordpool/init.py", line 80, in update_today
await self._update("today")
File "/config/custom_components/nordpool/init.py", line 73, in _update
data = await spot.hourly(end_date=dt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/aio_price.py", line 239, in hourly
return await self.fetch(self.HOURLY, end_date, areas)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/aio_price.py", line 233, in fetch
return join_result_for_correct_time(raw, end_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/aio_price.py", line 145, in join_result_for_correct_time
raise InvalidValueException()
custom_components.nordpool.aio_price.InvalidValueException
except an Mill integration, no values changed from then std. config from first startup!
Thanks for using the issue template. This error is mostly due to junk in the API response from Nordpool. The integration tries to evaluate all the errors and not just the code you are interested in. I have recently merged a PR that should fix this issue
I realized i had no data medio June 2023, but had no time searching for the reason at the time.
Now I used some time searching and.
Today I set upp a new Linux, docker and run Ha 2023.9.1 clean docker installation whit clean docker disk.
LOGS:
Log details (ERROR)
Logger: homeassistant.components.sensor
Source: custom_components/nordpool/aio_price.py:145
Integration: Sensor (documentation, issues)
First occurred: 4:04:03 PM (2 occurrences)
Last logged: 4:04:03 PM
Error adding entities for domain sensor with platform nordpool
Error while setting up nordpool platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/nordpool/sensor.py", line 518, in async_added_to_hass
await self.handle_new_hr()
File "/config/custom_components/nordpool/sensor.py", line 480, in handle_new_hr
today = await self._api.today(self._area, self._currency)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/init.py", line 113, in today
return await self._someday(area, currency, "today")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/init.py", line 99, in _someday
await self.update_today()
File "/config/custom_components/nordpool/init.py", line 80, in update_today
await self._update("today")
File "/config/custom_components/nordpool/init.py", line 73, in _update
data = await spot.hourly(end_date=dt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/aio_price.py", line 239, in hourly
return await self.fetch(self.HOURLY, end_date, areas)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/aio_price.py", line 233, in fetch
return join_result_for_correct_time(raw, end_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nordpool/aio_price.py", line 145, in join_result_for_correct_time
raise InvalidValueException()
custom_components.nordpool.aio_price.InvalidValueException
except an Mill integration, no values changed from then std. config from first startup!
Som neded info, pleas let me now!
Ove Lie
The text was updated successfully, but these errors were encountered: