sensor.plex_recently_added icon indicating copy to clipboard operation
sensor.plex_recently_added copied to clipboard

WARNING in log when adding new media.

Open Dan1jel opened this issue 11 months ago • 0 comments

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

Dan1jel avatar Feb 03 '25 10:02 Dan1jel