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

No data #343

Closed
oveeliegmailcom opened this issue Sep 10, 2023 · 2 comments
Closed

No data #343

oveeliegmailcom opened this issue Sep 10, 2023 · 2 comments

Comments

@oveeliegmailcom
Copy link

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.

  • removed the in integration
  • rebooted, and make shore no keys inn the logs....
  • reinstaled the integration and connected a single sensor, and got no data.

Today I set upp a new Linux, docker and run Ha 2023.9.1 clean docker installation whit clean docker disk.

  • added the custom integration, an added NOK and "tromsø" (and norhing else)

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!

System information

Version core-2023.9.1
Installation Type Home Assistant Container
Development false
Supervisor false
Docker true
User root
Virtual Environment false
Python Version 3.11.5
Operating System Family Linux
Operating System Version 6.6.0-0.rc0.20230908gita48fa7efaf11.10.fc40.x86_64
CPU Architecture x86_64
Timezone Europe/Oslo
Configuration Directory /config
COPY

Som neded info, pleas let me now!

Ove Lie

@Hellowlol
Copy link
Collaborator

Hi Ove,

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

@oveeliegmailcom
Copy link
Author

Tested whit success!

Excellent "support" :-)

mvh Ove

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