Use escapse string in get_intel_gpu_stats (#13452)

````
frigate/util/services.py:299: SyntaxWarning: invalid escape sequence '\d'
    for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
````
This commit is contained in:
Martin Weinelt 2024-08-31 18:49:13 +02:00 committed by GitHub
parent 921c9de241
commit ecaba82c9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,7 +296,7 @@ def get_intel_gpu_stats() -> dict[str, str]:
# video is used for vaapi
video = []
for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
for result in re.findall(r'"Video/\d":{[a-z":\d.,%]+}', reading):
packet = json.loads(result[10:])
single = packet.get("busy", 0.0)
video.append(float(single))