Enable readability-redundant-member-init check (#3097)

This commit is contained in:
Oxan van Leeuwen
2022-01-23 08:34:43 +01:00
committed by GitHub
parent a31700e16f
commit 7da12a878f
22 changed files with 22 additions and 30 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ static const char *const TAG = "mqtt.switch";
using namespace esphome::switch_;
MQTTSwitchComponent::MQTTSwitchComponent(switch_::Switch *a_switch) : MQTTComponent(), switch_(a_switch) {}
MQTTSwitchComponent::MQTTSwitchComponent(switch_::Switch *a_switch) : switch_(a_switch) {}
void MQTTSwitchComponent::setup() {
this->subscribe(this->get_command_topic_(), [this](const std::string &topic, const std::string &payload) {