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

@ -12,6 +12,8 @@ from .stage.sangaboard import SangaboardThing
class Illumination(lt.Thing):
"""Base class for an illumination controller."""
_class_settings = {"validate_properties_on_set": True}
@lt.action
def set_led(self, led_on: bool = True) -> None:
"""Set the LED to on or off."""