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:
Stephan Hadinger 2020-03-30 21:38:48 +02:00
parent 06774daba6
commit 8666765108
1 changed files with 0 additions and 7 deletions

View File

@ -202,13 +202,6 @@ uint32_t parseSingleAttribute(JsonObject& json, char *attrid_str, class SBuffer
case 0xFF: // unk
break;
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 0x30: // enum8
{