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 connecting to the device #12

Open
tpazderka opened this issue Aug 24, 2021 · 5 comments
Open

Error on connecting to the device #12

tpazderka opened this issue Aug 24, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@tpazderka
Copy link

I am receiving an error upon connecting.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 587, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 711, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 464, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 501, in _async_write_ha_state
    extra_state_attributes = self.extra_state_attributes
  File "/config/custom_components/jellyfin/sensor.py", line 93, in extra_state_attributes
    if self.jelly_cm.data:
  File "/config/custom_components/jellyfin/__init__.py", line 867, in data
    "number": f'S{item["ParentIndexNumber"]}E{item["IndexNumber"]}',
KeyError: 'ParentIndexNumber'

From the point of jellyfins, it looks like everything is working just fine as I can see several API calls from the HA user receiving data.

If there is anything I can do to help troubleshooting the issue, please let me know.

@koying koying added the bug Something isn't working label Aug 26, 2021
@koying
Copy link
Owner

koying commented Aug 26, 2021

I assume that NextUp is only about TV show episodes, but it doesn't seem to be the case for you?

@tpazderka
Copy link
Author

Not sure. I don't see anything related to that in the configuration. Is there something I can check/switch?

@koying
Copy link
Owner

koying commented Aug 27, 2021

Just check on jellyfin itself...

@tpazderka
Copy link
Author

If the section is what I think it is, that it contains MusicAlbums and Movies as well...

@Hukuma1
Copy link

Hukuma1 commented Dec 30, 2021

Logger: homeassistant.components.sensor
Source: custom_components/jellyfin/__init__.py:867
Integration: Sensor (documentation, issues)
First occurred: 11:21:56 AM (2 occurrences)
Last logged: 11:21:56 AM

Error adding entities for domain sensor with platform jellyfin
Error while setting up jellyfin platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 541, in _async_write_ha_state
    extra_state_attributes = self.extra_state_attributes
  File "/config/custom_components/jellyfin/sensor.py", line 93, in extra_state_attributes
    if self.jelly_cm.data:
  File "/config/custom_components/jellyfin/__init__.py", line 867, in data
    "number": f'S{item["ParentIndexNumber"]}E{item["IndexNumber"]}',
KeyError: 'IndexNumber'

Getting the exact same issue. Jellyfin works with no issues/errors. I have no limits on my user logins (0). Anyway to debug this? Would love to use this with Custom Upcoming Card. Don't have a music library. Only Movies and TV shows.

Versions:
Jellyfin 10.7.7
Home Assistant 2021.12.7
Jellyfin_HA 1.0.8

Edit: Toggling support for YAMC and importing the data into YAMC seems to work. So the issue is just with Generate Upcoming card data setting it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants