mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-30 09:48:27 +02:00
Enable readability-redundant-member-init check (#3097)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user