mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Initialize all child sensors to nullptr (#3808)
This commit is contained in:
@@ -245,10 +245,10 @@ class TSL2591Component : public PollingComponent, public i2c::I2CDevice {
|
||||
|
||||
protected:
|
||||
const char *name_;
|
||||
sensor::Sensor *full_spectrum_sensor_;
|
||||
sensor::Sensor *infrared_sensor_;
|
||||
sensor::Sensor *visible_sensor_;
|
||||
sensor::Sensor *calculated_lux_sensor_;
|
||||
sensor::Sensor *full_spectrum_sensor_{nullptr};
|
||||
sensor::Sensor *infrared_sensor_{nullptr};
|
||||
sensor::Sensor *visible_sensor_{nullptr};
|
||||
sensor::Sensor *calculated_lux_sensor_{nullptr};
|
||||
TSL2591IntegrationTime integration_time_;
|
||||
TSL2591ComponentGain component_gain_;
|
||||
TSL2591Gain gain_;
|
||||
|
||||
Reference in New Issue
Block a user