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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

string indices must be integers, not 'str' #27

Open
tjorim opened this issue Dec 20, 2023 · 0 comments
Open

string indices must be integers, not 'str' #27

tjorim opened this issue Dec 20, 2023 · 0 comments

Comments

@tjorim
Copy link
Contributor

tjorim commented Dec 20, 2023

Finally made a booking yesterday so I can put this integration to the test 馃槈

Logger: homeassistant.components.image
Source: helpers/entity_platform.py:361
Integration: Image (documentation, issues)
First occurred: 19 December 2023 at 22:00:51 (1 occurrences)
Last logged: 19 December 2023 at 22:00:51

Error while setting up ryanair platform for image
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/ryanair/image.py", line 144, in async_setup_entry
    await async_setup_platform(hass, config, async_add_entities)
  File "/config/custom_components/ryanair/image.py", line 100, in async_setup_platform
    flightName = "(" + boardingPass["flight"]["label"] + ") " + \
                       ~~~~~~~~~~~~^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
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