mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
Zigbee change boolean attributes to int
BREAKING CHANGE, "Power" attribute will be reported as `0`/`1` insteas of `false`/`true`
This commit is contained in:
parent
06774daba6
commit
8666765108
@ -202,13 +202,6 @@ uint32_t parseSingleAttribute(JsonObject& json, char *attrid_str, class SBuffer
|
|||||||
case 0xFF: // unk
|
case 0xFF: // unk
|
||||||
break;
|
break;
|
||||||
case 0x10: // bool
|
case 0x10: // bool
|
||||||
{
|
|
||||||
uint8_t val_bool = buf.get8(i++);
|
|
||||||
if (0xFF != val_bool) {
|
|
||||||
json[attrid_str] = (bool) (val_bool ? true : false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 0x20: // uint8
|
case 0x20: // uint8
|
||||||
case 0x30: // enum8
|
case 0x30: // enum8
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user