Skip to content

Commit 9aa3362

Browse files
authored
Update README.md
1 parent 83ca01d commit 9aa3362

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ If you don't like annotations and prefer to build Thing Descriptions in code, yo
351351
maximum = 100
352352
observable = true
353353
unit = "percent"
354+
readOnly = true
354355
}
355356
stringSchema("propertyName2") {
356357
title = "Property 2"
@@ -373,10 +374,10 @@ If you don't like annotations and prefer to build Thing Descriptions in code, yo
373374
}.apply {
374375
setPropertyReadHandler("propertyName1") { ... }
375376
setPropertyReadHandler("propertyName2") { ... }
376-
setPropertyWriteHandler("inOutAction") { input, _ ->
377+
setPropertyWriteHandler("propertyName2") { input, _ ->
377378
...
378379
}
379-
setActionHandler(ACTION_NAME) { input, _ ->
380+
setActionHandler("inOutAction") { input, _ ->
380381
...
381382
}
382383
}

0 commit comments

Comments
 (0)