Enable validation for all Things and pick correct branch

This commit updates the branch to use Thing._class_settings instead of FEATURE_FLAGS for a safer way to implement new features.
This commit is contained in:
Richard Bowman 2026-04-22 00:28:10 +01:00 committed by Julian Stirling
parent 05f92b9b33
commit 622fa17634
11 changed files with 20 additions and 4 deletions

View file

@ -38,6 +38,8 @@ class ChannelBlankError(lt.exceptions.InvocationError):
class BackgroundDetectAlgorithm(lt.Thing):
"""The base class for defining background detect algorithms."""
_class_settings = {"validate_properties_on_set": True}
display_name: str = lt.property(default="Base Detector", readonly=True)
def __init__(self, thing_server_interface: lt.ThingServerInterface) -> None: