mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 05:24:11 +03:00
Move hailo_platform import to get_hailo_temps
This commit is contained in:
parent
7d5317959d
commit
513bede475
@ -18,7 +18,6 @@ import cv2
|
||||
import psutil
|
||||
import py3nvml.py3nvml as nvml
|
||||
import requests
|
||||
from hailo_platform import Device
|
||||
|
||||
from frigate.const import (
|
||||
DRIVER_AMD,
|
||||
@ -552,6 +551,11 @@ def get_jetson_stats() -> Optional[dict[int, dict]]:
|
||||
|
||||
def get_hailo_temps() -> dict[str, float]:
|
||||
"""Get temperatures for Hailo devices."""
|
||||
try:
|
||||
from hailo_platform import Device
|
||||
except ModuleNotFoundError:
|
||||
return {}
|
||||
|
||||
temps = {}
|
||||
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user