From aad5b46f82e4c7656f70e41b949ed069cc33a224 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 16 Oct 2024 18:10:24 +0100 Subject: [PATCH] don't reference timer_running_ directly --- esphome/components/hbridge/switch/hbridge_switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/hbridge/switch/hbridge_switch.cpp b/esphome/components/hbridge/switch/hbridge_switch.cpp index 7717c03e5a..12d1c01bca 100644 --- a/esphome/components/hbridge/switch/hbridge_switch.cpp +++ b/esphome/components/hbridge/switch/hbridge_switch.cpp @@ -38,7 +38,7 @@ void HBridgeSwitch::dump_config() { void HBridgeSwitch::write_state(bool state) { this->desired_state_ = state; - if (!timer_running_) + if (!this->timer_running_) this->timer_fn_(); }