core/homeassistant/components/camera
J. Nick Koston 09e7156d2d
Fix turbojpeg init doing blocking I/O in the event loop (#117971)
* Fix turbojpeg init doing blocking I/O in the event loop

fixes
```
Detected blocking call to open inside the event loop by integration camera at homeassistant/components/camera/img_util.py, line 100: TurboJPEGSingleton.__instance = TurboJPEG() (offender: /usr/local/lib/python3.12/ctypes/util.py, line 276: with open(filepath, rb) as fh:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+camera%22
```

* Update homeassistant/components/camera/img_util.py

* Fix turbojpeg init doing blocking I/O in the event loop

fixes
```
Detected blocking call to open inside the event loop by integration camera at homeassistant/components/camera/img_util.py, line 100: TurboJPEGSingleton.__instance = TurboJPEG() (offender: /usr/local/lib/python3.12/ctypes/util.py, line 276: with open(filepath, rb) as fh:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+camera%22
```

* already suppressed and logged
2024-05-23 10:50:25 -04:00
..
__init__.py Use PEP 695 for simple type aliases (#117633) 2024-05-17 14:42:21 +02:00
const.py Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
diagnostics.py
icons.json
img_util.py Fix turbojpeg init doing blocking I/O in the event loop (#117971) 2024-05-23 10:50:25 -04:00
manifest.json
media_source.py Use friendly name for camera media source (#110882) 2024-03-12 21:20:14 +01:00
prefs.py Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
services.yaml
significant_change.py Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
strings.json