1
0
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:
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

View File

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