kirei / hass-chargeamps

Home Assistant Component for Chargeamps
Other
26 stars 8 forks source link

Index out of range #30

Closed vlumikero closed 2 years ago

vlumikero commented 2 years ago

Hi,

I’m getting the following error when the component is trying to start up.

Any idea what it could be?


Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/chargeamps/__init__.py", line 119, in async_setup
    handler = ChargeampsHandler(hass, client, charge_point_ids, readonly, scan_interval)
  File "/config/custom_components/chargeamps/__init__.py", line 158, in __init__
    self.default_charge_point_id = charge_point_ids[0]
IndexError: list index out of range
vlumikero commented 2 years ago

I can see my chargepoints from the web UI. When I try it in Swagger I can authorize but the “get owned chargepoints” function returns a 401.

jschlyter commented 2 years ago

What was the issue?

vlumikero commented 2 years ago

I think the listing of chargepoints didn’t return anything, at least when I tried it with the Swagger UI. When I specified the chargepoint id, it worked.

vlumikero commented 2 years ago

I think the listing of chargepoints didn’t return anything, at least when I tried it with the Swagger UI. When I specified the chargepoint id, it worked.

Hämta Outlook för iOShttps://aka.ms/o0ukef


Från: Jakob Schlyter @.> Skickat: Thursday, July 7, 2022 1:01:28 PM Till: kirei/hass-chargeamps @.> Kopia: vlumikero @.>; State change @.> Ämne: Re: [kirei/hass-chargeamps] Index out of range (Issue #30)

What was the issue?

— Reply to this email directly, view it on GitHubhttps://github.com/kirei/hass-chargeamps/issues/30#issuecomment-1177343813, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADI3TZUSLOQYPSSTMJ7TFQDVS2THRANCNFSM522QOPHQ. You are receiving this because you modified the open/close state.Message ID: @.***>