mirror of
https://github.com/esphome/esphome.git
synced 2025-01-21 21:31:55 +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_SWITCH:
|
||||||
case SHELLY_DIMMER_PROTO_CMD_SETTINGS: {
|
case SHELLY_DIMMER_PROTO_CMD_SETTINGS: {
|
||||||
return !(payload_len < 1 || payload[0] != 0x01);
|
return payload_len >= 1 && payload[0] == 0x01;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user