mirror of
https://github.com/esphome/esphome.git
synced 2024-12-10 14:45:56 +01:00
parent
536bcab5de
commit
2d4688a206
@ -466,7 +466,7 @@ bool ShellyDimmer::handle_frame_() {
|
||||
}
|
||||
case SHELLY_DIMMER_PROTO_CMD_SWITCH:
|
||||
case SHELLY_DIMMER_PROTO_CMD_SETTINGS: {
|
||||
return !(payload_len < 1 || payload[0] != 0x01);
|
||||
return payload_len >= 1 && payload[0] == 0x01;
|
||||
}
|
||||
default: {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user