Просмотр исходного кода

docs (devices): document mask_signed

This support was added some time ago, and is in the schema,
but not documented in the README

Issue #4268
Jason Rumney 1 месяц назад
Родитель
Сommit
cb16ed563f
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      custom_components/tuya_local/devices/README.md

+ 6 - 0
custom_components/tuya_local/devices/README.md

@@ -304,6 +304,12 @@ For base64 and hex types, this specifies how to extract a single numeric value f
 
 For base64 and hex types, this specifies the endianess of the data and mask. Could be "big" or "little".
 
+### `mask_signed`
+
+*Optional, default=false*
+
+For base64 and hex types, set this to true if you need to extract a signed integer from the masked field.
+
 ## Mapping Rules
 
 Mapping rules can change the behavior of attributes beyond simple