From 80e547d4efae912343b17a9254482d4cabe7c177 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 01:00:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- components/ratgdo/ratgdo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index edc0d27..0327658 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -460,10 +460,10 @@ namespace ratgdo { return; } - if(this->obstruction_sensor_detected_){ - this->door_action(DoorAction::CLOSE); - }else if(*this->door_state == DoorState::OPEN){ - ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE."); + if (this->obstruction_sensor_detected_) { + this->door_action(DoorAction::CLOSE); + } else if (*this->door_state == DoorState::OPEN) { + ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE."); this->door_action(DoorAction::TOGGLE); }