You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have filled out the issue template to the best of my ability.
This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
This issue is not a duplicate issue of currently previous issues..
Describe the issue
This is appearing in the logs multiple times.
Reproduction steps
Upgrade to 2024.6
Debug logs
2024-06-07 18:18:54.692 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'spoolman' at custom_components/spoolman/sensor.py, line 226: image.save(image_path) (offender: /usr/local/lib/python3.12/site-packages/PIL/Image.py, line 2456: fp = builtins.open(filename, "w+b")), please create a bug report at https://github.com/Disane87/spoolman-homeassistant/issues
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 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
update_callback()
File "/config/custom_components/spoolman/sensor.py", line 126, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1084, in __async_calculate_state
if (entity_picture := self.entity_picture) is not None:
File "/config/custom_components/spoolman/sensor.py", line 209, in entity_picture
return self.generate_entity_picture(color_hex)
File "/config/custom_components/spoolman/sensor.py", line 226, in generate_entity_picture
image.save(image_path)
### Diagnostics dump
_No response_
The text was updated successfully, but these errors were encountered:
## [0.5.0](v0.4.3...v0.5.0) (2024-07-02)
### 🛠️ Fixes
* added names for service.yaml ([2f9801e](2f9801e))
* Fix blocking of entity picture generation ([6f54177](6f54177)), closes [#121](#121)
* removed periods from descriptions and names ([6b821b6](6b821b6)), closes [#119](#119)
### 🚀 Features
* service integration to change a spool in Spoolman via API ([881a76b](881a76b)), closes [#119](#119)
### 📔 Docs
* changed CONTRIBUTING.md ([144c4e2](144c4e2))
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
keymaster
Dashboards
Recorder
Checklist
Describe the issue
This is appearing in the logs multiple times.
Reproduction steps
Upgrade to 2024.6
Debug logs
The text was updated successfully, but these errors were encountered: