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

WARNING in log when adding new media. #89

Open
Dan1jel opened this issue Feb 3, 2025 · 0 comments
Open

WARNING in log when adding new media. #89

Dan1jel opened this issue Feb 3, 2025 · 0 comments

Comments

@Dan1jel
Copy link

Dan1jel commented Feb 3, 2025

Describe the Bug
Soon as media is added i get this "Warning" in system > log.

The Error
Copy and paste the full error from Home Assistant

Detected blocking call to open with args ('/config/www/upcoming-media-card-images/plex/Recently_Added_TV/f12600.jpg', 'wb') inside the event loop by custom integration 'plex_recently_added' at custom_components/plex_recently_added/sensor.py, line 325: open(fanart_jpg, 'wb').write(fanart_image) (offender: /config/custom_components/plex_recently_added/sensor.py, line 325: open(fanart_jpg, 'wb').write(fanart_image)), please create a bug report at https://github.com/NemesisRE/sensor.plex_recently_added For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 678, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2033, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update await self.async_update() File "/config/custom_components/plex_recently_added/sensor.py", line 325, in async_update open(fanart_jpg, 'wb').write(fanart_image)

Indicate if you followed all steps in the troubleshooting doc
Did not see anything related to this issue via the troubleshooting link.

What data does the sensor display if any?
They do add all information to the card, but when added media, i get this error.

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

Home Assistant Version
Core 2025.1.4
Frontend 20250109.2

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