From b024c53a6dce4f32ca20140539d16871e50a2676 Mon Sep 17 00:00:00 2001 From: Iron Man Date: Wed, 24 Apr 2024 21:23:14 +0200 Subject: [PATCH] Update ds248x.h init pointer to nullptr --- esphome/components/ds248x/ds248x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ds248x/ds248x.h b/esphome/components/ds248x/ds248x.h index 0b2024d900..aef6bcf733 100644 --- a/esphome/components/ds248x/ds248x.h +++ b/esphome/components/ds248x/ds248x.h @@ -44,7 +44,7 @@ class DS248xComponent : public PollingComponent, public i2c::I2CDevice { uint8_t channel_ = 0; bool last_device_found_; - InternalGPIOPin *sleep_pin_; + InternalGPIOPin *sleep_pin_ = nullptr; DS248xType ds248x_type_ = DS248xType::DS2482_100; bool enable_bus_sleep_ = false;