mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 12:52:19 +01:00
Enable readability-redundant-member-init check (#3097)
This commit is contained in:
@@ -23,7 +23,7 @@ void MQTTBinarySensorComponent::dump_config() {
|
||||
LOG_MQTT_COMPONENT(true, false)
|
||||
}
|
||||
MQTTBinarySensorComponent::MQTTBinarySensorComponent(binary_sensor::BinarySensor *binary_sensor)
|
||||
: MQTTComponent(), binary_sensor_(binary_sensor) {
|
||||
: binary_sensor_(binary_sensor) {
|
||||
if (this->binary_sensor_->is_status_binary_sensor()) {
|
||||
this->set_custom_state_topic(mqtt::global_mqtt_client->get_availability().topic);
|
||||
}
|
||||
|
Reference in New Issue
Block a user