mirror of
https://github.com/esphome/esphome.git
synced 2025-11-15 14:25:45 +00:00
Enable readability-redundant-member-init check (#3097)
This commit is contained in:
@@ -11,7 +11,7 @@ static const char *const TAG = "mqtt.text_sensor";
|
||||
|
||||
using namespace esphome::text_sensor;
|
||||
|
||||
MQTTTextSensor::MQTTTextSensor(TextSensor *sensor) : MQTTComponent(), sensor_(sensor) {}
|
||||
MQTTTextSensor::MQTTTextSensor(TextSensor *sensor) : sensor_(sensor) {}
|
||||
void MQTTTextSensor::send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) {
|
||||
config.command_topic = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user