Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions homeassistant/components/camera/img_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@

from __future__ import annotations

from contextlib import suppress
import logging
from typing import TYPE_CHECKING, Literal, cast

with suppress(Exception):
# TurboJPEG imports numpy which may or may not work so
# we have to guard the import here. We still want
# to import it at top level so it gets loaded
# in the import executor and not in the event loop.
from turbojpeg import TurboJPEG

from turbojpeg import TurboJPEG

if TYPE_CHECKING:
from . import Image
Expand Down