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:
parent
05f92b9b33
commit
622fa17634
11 changed files with 20 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue