Skip to content

Error while setting up #46

Open
Open
@rcmaehl

Description

Was reviewing my logs. I have #44 but I also have:

2024-07-10 18:57:35.542 ERROR (MainThread) [homeassistant.components.select] Error while setting up chargepoint platform for select
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/chargepoint/select.py", line 116, in async_setup_entry
select_class(hass, client, coordinator, description, charger_id)
File "/config/custom_components/chargepoint/select.py", line 51, in __init__
self._attr_options = [str(v) for v in self.charger_status.possible_amperage_limits]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'int' object is not iterable

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions