mirror of
https://github.com/esphome/esphome.git
synced 2025-09-11 07:42:26 +01:00
[code-quality] fix readability-braces-around-statements (#7273)
This commit is contained in:
@@ -18,10 +18,11 @@ class BinaryLightOutput : public light::LightOutput {
|
||||
void write_state(light::LightState *state) override {
|
||||
bool binary;
|
||||
state->current_values_as_binary(&binary);
|
||||
if (binary)
|
||||
if (binary) {
|
||||
this->output_->turn_on();
|
||||
else
|
||||
} else {
|
||||
this->output_->turn_off();
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user