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

This commit is contained in:
Oxan van Leeuwen authored and GitHub committed 2022-01-23 20:34:43 +13:00
1 parent a31700e16f
commit 7da12a878f
22 files changed
+22 -30

No files matched your search

@@ -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);
}