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

plex_recently_added: Error on device update! #57

Closed
greghesp opened this issue May 6, 2021 · 2 comments
Closed

plex_recently_added: Error on device update! #57

greghesp opened this issue May 6, 2021 · 2 comments

Comments

@greghesp
Copy link

greghesp commented May 6, 2021

Describe the Bug
Unable to use sensor

The Error

Logger: homeassistant.components.sensor
Source: custom_components/plex_recently_added/sensor.py:269
Integration: Sensor (documentation, issues)
First occurred: 12:55:46 (1 occurrences)
Last logged: 12:55:46

plex_recently_added: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 482, in async_device_update
    await task
  File "/config/custom_components/plex_recently_added/sensor.py", line 269, in async_update
    sub_sec = json.loads(sub_sec)
  File "/usr/local/lib/python3.8/json/__init__.py", line 341, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Indicate if you followed all steps in the troubleshooting doc
Plex recently added URL shows XML of recently added

What data does the sensor display if any?
Does not show

What displays when visiting the API URL from the troubleshooting guide?
XML Media Container with all recently added plex information. Snippet below
image

Does the default Home Assistant Plex component work for you?
Yes

Home Assistant Version
core-2021.5.0

@jhockert
Copy link

Exactly the same error here. Using postman I am able to get json formatting

@mkanet
Copy link
Collaborator

mkanet commented May 30, 2024

guys, please try the completely rewritten version of this integration that can be configured in the Home Assistant GUI.

@mkanet mkanet closed this as completed May 30, 2024
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

3 participants