Skip to content

Commit

Permalink
# threading issue #62
Browse files Browse the repository at this point in the history
Signed-off-by: SCA075 <[email protected]>
  • Loading branch information
sca075 committed Dec 28, 2023
1 parent fb816cf commit 35f2046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/valetudo_vacuum_camera/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging
import os
import json
import threading
# import threading
import psutil_home_assistant as proc_insp
from io import BytesIO
from datetime import datetime, timedelta
Expand Down Expand Up @@ -558,5 +558,5 @@ async def async_update(self):
f"{memory_percent}% of Total.")
self._cpu_percent = proc.cpu_percent() / proc_insp.PsutilWrapper().psutil.cpu_count()
self._processing = False
threading.Thread(target=self.async_update).start()
# threading.Thread(target=self.async_update).start()
return self._image

0 comments on commit 35f2046

Please sign in to comment.