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

Error on Setup, Jason parsing error? #78

Open
dbaarda opened this issue Oct 13, 2024 · 0 comments
Open

Error on Setup, Jason parsing error? #78

dbaarda opened this issue Oct 13, 2024 · 0 comments

Comments

@dbaarda
Copy link

dbaarda commented Oct 13, 2024

I'm just trying to set this up. Installed via HACs which says I've installed v1.2.4, but the service self-reports as v1.2.2. After entering siteid, username, and passwd it doesn't seem to find any devices or entities. Looking in the logs I find;

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:361
integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 9:34:27 AM (2 occurrences)
Last logged: 9:46:45 AM

Error while setting up solaredgeoptimizers platform for sensor
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/home/homeassistant/.homeassistant/custom_components/solaredgeoptimizers/sensor.py", line 97, in async_setup_entry
    info = await hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/solaredgeoptimizers/solaredgeoptimizers.py", line 64, in requestSystemData
    raise errortje
  File "/srv/homeassistant/lib/python3.12/site-packages/solaredgeoptimizers/solaredgeoptimizers.py", line 56, in requestSystemData
    if json_object["lastMeasurementDate"] == "":
       ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str

Is this some kind of typo error in a new release? Or a change to the jason returned?

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