Move ThingSetting and ThingProperty docstrings under the definition.

This commit is contained in:
Julian Stirling 2025-07-10 10:43:05 +01:00
parent 12df8c9072
commit 11a1fd7f85
7 changed files with 42 additions and 47 deletions

View file

@ -46,14 +46,14 @@ class SettingsManager(lt.Thing):
external_metadata = lt.ThingSetting(
initial_value={},
model=Mapping,
description="External metadata stored in the server's settings",
)
"""External metadata stored in the server's settings."""
external_metadata_in_state = lt.ThingSetting(
initial_value=[],
model=Sequence[str],
description='A list of strings that are included in the "state" metadata',
)
"""A list of strings that are included in the "state" metadata."""
@lt.thing_action
def update_external_metadata(