diff --git a/esphome/components/si4713_i2c/output/output.h b/esphome/components/si4713_i2c/output/output.h index 40790a3200..26de5297a5 100644 --- a/esphome/components/si4713_i2c/output/output.h +++ b/esphome/components/si4713_i2c/output/output.h @@ -12,9 +12,7 @@ class BinaryOutput : public output::BinaryOutput, public Component, public Paren void set_pin(uint8_t pin) { this->pin_ = pin - 1; } protected: - void write_state(bool state) override { - this->parent_->set_output_gpio(this->pin_, state); - } + void write_state(bool state) override { this->parent_->set_output_gpio(this->pin_, state); } uint8_t pin_{0}; }; diff --git a/esphome/components/si4713_i2c/select/select.h b/esphome/components/si4713_i2c/select/select.h index c5822d4761..0ead282e25 100644 --- a/esphome/components/si4713_i2c/select/select.h +++ b/esphome/components/si4713_i2c/select/select.h @@ -56,7 +56,6 @@ class DigitalChannelsSelect : public select::Select, public Parented { protected: void control(const std::string &value) override { diff --git a/esphome/components/si4713_i2c/si4713.cpp b/esphome/components/si4713_i2c/si4713.cpp index 948431ef77..4eefab1cad 100644 --- a/esphome/components/si4713_i2c/si4713.cpp +++ b/esphome/components/si4713_i2c/si4713.cpp @@ -46,8 +46,8 @@ bool Si4713Component::send_cmd(const void *cmd, size_t cmd_size, void *res, size } ResBase status; - while(status.CTS == 0) { - err = this->read((uint8_t*) &status, 1); // TODO: read res_size into res here? + while (status.CTS == 0) { + err = this->read((uint8_t *) &status, 1); // TODO: read res_size into res here? if (err != i2c::ERROR_OK) { ESP_LOGE(TAG, "send_cmd(0x%02X, %d) read status error", buff[0], cmd_size); // this->mark_failed(); diff --git a/tests/components/si4713_i2c/test.esp32-s3-ard.yaml b/tests/components/si4713_i2c/test.esp32-s3-ard.yaml index 88141063d1..2e9b6261b8 100644 --- a/tests/components/si4713_i2c/test.esp32-s3-ard.yaml +++ b/tests/components/si4713_i2c/test.esp32-s3-ard.yaml @@ -3,7 +3,7 @@ i2c: scl: 9 scan: True -si4713: +si4713_i2c: id: fm_transmitter reset_pin: 10 op_mode: Analog @@ -77,7 +77,7 @@ si4713: name: Input Audio Level number: - - platform: si4713 + - platform: si4713_i2c tuner: frequency: id: si4713_frequency @@ -126,7 +126,7 @@ number: name: RDS Deviation switch: - - platform: si4713 + - platform: si4713_i2c mute: name: Mute mono: @@ -162,7 +162,7 @@ switch: name: GPIO3 Switch select: - - platform: si4713 + - platform: si4713_i2c pre_emphasis: name: Pre-Emphasis analog: @@ -189,7 +189,7 @@ select: name: Dynamic Range Control Preset text: - - platform: si4713 + - platform: si4713_i2c rds: station: name: RDS Station @@ -197,9 +197,9 @@ text: name: RDS Text output: - - platform: si4713 + - platform: si4713_i2c id: "GPIO1" pin: 1 - - platform: si4713 + - platform: si4713_i2c id: "GPIO2" pin: 2 diff --git a/tests/components/si4713_i2c/test.esp32-s3-idf.yaml b/tests/components/si4713_i2c/test.esp32-s3-idf.yaml index 88141063d1..2e9b6261b8 100644 --- a/tests/components/si4713_i2c/test.esp32-s3-idf.yaml +++ b/tests/components/si4713_i2c/test.esp32-s3-idf.yaml @@ -3,7 +3,7 @@ i2c: scl: 9 scan: True -si4713: +si4713_i2c: id: fm_transmitter reset_pin: 10 op_mode: Analog @@ -77,7 +77,7 @@ si4713: name: Input Audio Level number: - - platform: si4713 + - platform: si4713_i2c tuner: frequency: id: si4713_frequency @@ -126,7 +126,7 @@ number: name: RDS Deviation switch: - - platform: si4713 + - platform: si4713_i2c mute: name: Mute mono: @@ -162,7 +162,7 @@ switch: name: GPIO3 Switch select: - - platform: si4713 + - platform: si4713_i2c pre_emphasis: name: Pre-Emphasis analog: @@ -189,7 +189,7 @@ select: name: Dynamic Range Control Preset text: - - platform: si4713 + - platform: si4713_i2c rds: station: name: RDS Station @@ -197,9 +197,9 @@ text: name: RDS Text output: - - platform: si4713 + - platform: si4713_i2c id: "GPIO1" pin: 1 - - platform: si4713 + - platform: si4713_i2c id: "GPIO2" pin: 2