Update things to have thing_server_interface, and further fixes to properties

This commit is contained in:
Julian Stirling 2025-12-14 13:07:50 +00:00
parent a0b8a71477
commit 5d3aa71b4f
9 changed files with 39 additions and 17 deletions

View file

@ -103,13 +103,16 @@ class SmartScanThing(lt.Thing):
past scans.
"""
def __init__(self, scans_folder: str) -> None:
def __init__(
self, thing_server_interface: lt.ThingServerInterface, scans_folder: str
) -> None:
"""Initialise a SmartScanThing saving to and loading from the input directory.
:param scans_folder: This is the path to the directory where all scans will be
saved. Any scans already in this directory will be accessible through the
HTTP interface.
"""
super().__init__(thing_server_interface)
self._scan_dir_manager = scan_directories.ScanDirectoryManager(scans_folder)
self._scan_lock = threading.Lock()