jampez77 / Ryanair

Ryanair Home Assistant Integration
MIT License
3 stars 4 forks source link

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

Closed tjorim closed 2 months ago

tjorim commented 9 months ago

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'
jampez77 commented 2 months ago

Thisa should be fixed with 2024.7.0