mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-05 12:30:28 +02:00
Initialize all child sensors to nullptr (#3808)
This commit is contained in:
@@ -43,8 +43,8 @@ class Tx20Component : public Component {
|
||||
|
||||
std::string wind_cardinal_direction_;
|
||||
InternalGPIOPin *pin_;
|
||||
sensor::Sensor *wind_speed_sensor_;
|
||||
sensor::Sensor *wind_direction_degrees_sensor_;
|
||||
sensor::Sensor *wind_speed_sensor_{nullptr};
|
||||
sensor::Sensor *wind_direction_degrees_sensor_{nullptr};
|
||||
Tx20ComponentStore store_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user