Skip to content

Commit

Permalink
Merge esphome 2021.12 changes (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Dec 26, 2021
1 parent 6a71105 commit ccf1043
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/xiaomi_ble/xiaomi_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ optional<XiaomiParseResult> parse_xiaomi_header(const esp32_ble_tracker::Service
result.type = XiaomiParseResult::TYPE_MUE4094RT;
result.name = "MUE4094RT";
result.raw_offset -= 6;
} else if ((raw[2] == 0x47) && (raw[3] == 0x03)) { // ClearGrass-branded, round body, e-ink display
result.type = XiaomiParseResult::TYPE_CGG1;
result.name = "CGG1";
} else if ((raw[2] == 0x48) && (raw[3] == 0x0B)) { // Qingping-branded, round body, e-ink display — with bindkeys
} else if ((raw[2] == 0x47 && raw[3] == 0x03) || // ClearGrass-branded, round body, e-ink display
(raw[2] == 0x48 && raw[3] == 0x0B)) { // Qingping-branded, round body, e-ink display — with bindkeys
result.type = XiaomiParseResult::TYPE_CGG1;
result.name = "CGG1";
} else if ((raw[2] == 0xbc) && (raw[3] == 0x03)) { // VegTrug Grow Care Garden
Expand Down

0 comments on commit ccf1043

Please sign in to comment.